Merge "Unified work lock checkbox should roll back when user cancels confirm dialog" into nyc-dev
am: 4f19945
* commit '4f1994598ba27907614d381d2792508367a05131':
Unified work lock checkbox should roll back when user cancels confirm dialog
Change-Id: Ie83daa2b232ddd6a7f733ddb8b9f0f733d62bccb
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