Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3f3db1d authored by Yiyi Shen's avatar Yiyi Shen
Browse files

[Audiosharing] Allow showing dialog when parent atLeast CREATED

Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I6b4b363dab9531de0874a157254a1e9848ff0448
parent 2380c5d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ public class AudioSharingDisconnectDialogFragment extends InstrumentedDialogFrag
            return false;
        }
        Lifecycle.State currentState = host.getLifecycle().getCurrentState();
        if (!currentState.isAtLeast(Lifecycle.State.STARTED)) {
        if (!currentState.isAtLeast(Lifecycle.State.CREATED)) {
            Log.d(TAG, "Fail to show dialog with state: " + currentState);
            return false;
        }
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ public class AudioSharingJoinDialogFragment extends InstrumentedDialogFragment {
            return false;
        }
        Lifecycle.State currentState = host.getLifecycle().getCurrentState();
        if (!currentState.isAtLeast(Lifecycle.State.STARTED)) {
        if (!currentState.isAtLeast(Lifecycle.State.CREATED)) {
            Log.d(TAG, "Fail to show dialog with state: " + currentState);
            return false;
        }
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class AudioSharingStopDialogFragment extends InstrumentedDialogFragment {
            return false;
        }
        Lifecycle.State currentState = host.getLifecycle().getCurrentState();
        if (!currentState.isAtLeast(Lifecycle.State.STARTED)) {
        if (!currentState.isAtLeast(Lifecycle.State.CREATED)) {
            Log.d(TAG, "Fail to show dialog with state: " + currentState);
            return false;
        }