Merge "[Audiosharing] Allow showing dialog when parent atLeast CREATED" into main
This commit is contained in:
@@ -103,7 +103,7 @@ public class AudioSharingDisconnectDialogFragment extends InstrumentedDialogFrag
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Lifecycle.State currentState = host.getLifecycle().getCurrentState();
|
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);
|
Log.d(TAG, "Fail to show dialog with state: " + currentState);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -102,7 +102,7 @@ public class AudioSharingJoinDialogFragment extends InstrumentedDialogFragment {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Lifecycle.State currentState = host.getLifecycle().getCurrentState();
|
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);
|
Log.d(TAG, "Fail to show dialog with state: " + currentState);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -100,7 +100,7 @@ public class AudioSharingStopDialogFragment extends InstrumentedDialogFragment {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Lifecycle.State currentState = host.getLifecycle().getCurrentState();
|
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);
|
Log.d(TAG, "Fail to show dialog with state: " + currentState);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user