Prevent crash when fragment lifecycle is after onStop

Fix: 325059602
Test: build pass
Change-Id: Ie132b4fd6b6c7df8c0fe188e0eb238f562fd4d6e
This commit is contained in:
tomhsu
2024-06-14 02:38:07 +00:00
parent 8e103fc4fd
commit b4108cb17e

View File

@@ -85,6 +85,10 @@ public abstract class SimDialogFragment extends InstrumentedDialogFragment imple
@Override
public void dismiss() {
if (isStateSaved()) {
Log.d(TAG, "fragment saved state, so bypass dismiss");
return;
}
mChangeListener.stop();
super.dismiss();
}