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

Commit 63f3ebd0 authored by Yiyi Shen's avatar Yiyi Shen Committed by Android (Google) Code Review
Browse files

Merge "[Audiosharing] Show dialog when lifecycle state at least INITIALIZED" into main

parents ea91caf9 a2aabd20
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.CREATED)) {
        if (!currentState.isAtLeast(Lifecycle.State.INITIALIZED)) {
            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.CREATED)) {
        if (!currentState.isAtLeast(Lifecycle.State.INITIALIZED)) {
            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.CREATED)) {
        if (!currentState.isAtLeast(Lifecycle.State.INITIALIZED)) {
            Log.d(TAG, "Fail to show dialog with state: " + currentState);
            return false;
        }