Guard against crash in dev options

Bug: 27480962
Change-Id: I22d799f8796f94febda7bd49eb7431d29201e37f
This commit is contained in:
Jason Monk
2016-03-18 14:40:42 -04:00
parent f38fb38f26
commit aa864953b7

View File

@@ -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();
} }
}; };