Merge "[Settings] Avoid non-owner from crash mobile data settings"
This commit is contained in:
@@ -118,6 +118,9 @@ public class MobileNetworkActivity extends SettingsBaseActivity
|
|||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
if (mProxySubscriptionMgr == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mProxySubscriptionMgr.removeActiveSubscriptionsListener(this);
|
mProxySubscriptionMgr.removeActiveSubscriptionsListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user