Unified work lock checkbox should roll back when user cancels confirm dialog
Bug: 28137228 Change-Id: I81cbd41462418ac25142c561c80394db1e6f7d74
This commit is contained in:
@@ -1282,17 +1282,15 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
||||
}
|
||||
}
|
||||
)
|
||||
.setNegativeButton(R.string.cancel,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int whichButton) {
|
||||
parentFragment.updateUnificationPreference();
|
||||
dismiss();
|
||||
}
|
||||
}
|
||||
)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDismiss(DialogInterface dialog) {
|
||||
super.onDismiss(dialog);
|
||||
((SecuritySettings) getParentFragment()).updateUnificationPreference();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user