Guard against crash in dev options
Bug: 27480962 Change-Id: I22d799f8796f94febda7bd49eb7431d29201e37f
This commit is contained in:
@@ -1720,6 +1720,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
DialogInterface.OnDismissListener onDismissListener = new DialogInterface.OnDismissListener() {
|
DialogInterface.OnDismissListener onDismissListener = new DialogInterface.OnDismissListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onDismiss(DialogInterface dialog) {
|
public void onDismiss(DialogInterface dialog) {
|
||||||
|
if (getActivity() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateAllOptions();
|
updateAllOptions();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user