[Settings] subscription UI should be closed when SIM is removed
When SIM is removed, subscription UI should actively be closed (instead of waiting for user to leave UI). Bug: 160197149 Test: manual Change-Id: I2854147c956faa633a9682eee0028db6cd2d3912
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.
|
||||
if (info == null) {
|
||||
// Close the activity when subscription removed
|
||||
if ((oldSubIndex != SUB_ID_NULL)
|
||||
&& (!isFinishing()) && (!isDestroyed())) {
|
||||
finish();
|
||||
}
|
||||
return;
|
||||
}
|
||||
int subIndex = info.getSubscriptionId();
|
||||
|
Reference in New Issue
Block a user