Merge "[Settings] subscription UI should be closed when SIM is removed" am: b3efa585f2
am: 5dba10a956
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1425488 Change-Id: I32087c8910c01323c70eb124cff1247c4d60fed5
This commit is contained in:
@@ -158,6 +158,11 @@ public class MobileNetworkActivity extends SettingsBaseActivity
|
|||||||
|
|
||||||
// Remove the dialog if the subscription associated with this activity changes.
|
// Remove the dialog if the subscription associated with this activity changes.
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
|
// Close the activity when subscription removed
|
||||||
|
if ((oldSubIndex != SUB_ID_NULL)
|
||||||
|
&& (!isFinishing()) && (!isDestroyed())) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int subIndex = info.getSubscriptionId();
|
int subIndex = info.getSubscriptionId();
|
||||||
|
Reference in New Issue
Block a user