Merge "Fix the settings crash when SimDialogActivity is null" into tm-dev

This commit is contained in:
SongFerng Wang
2022-03-03 12:36:43 +00:00
committed by Android (Google) Code Review
3 changed files with 12 additions and 4 deletions

View File

@@ -128,12 +128,13 @@ public class SimListDialogFragment extends SimDialogFragment {
@Override
public void updateDialog() {
Log.d(TAG, "Dialog updated, dismiss status: " + mWasDismissed);
if (mWasDismissed) {
return;
}
List<SubscriptionInfo> currentSubscriptions = getCurrentSubscriptions();
if (currentSubscriptions == null) {
if (!mWasDismissed) {
dismiss();
}
dismiss();
return;
}
boolean includeAskEveryTime = getArguments().getBoolean(KEY_INCLUDE_ASK_EVERY_TIME);