summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/DeviceAdminAdd.java35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/com/android/settings/DeviceAdminAdd.java b/src/com/android/settings/DeviceAdminAdd.java
index 03db9ce..94cf714 100644
--- a/src/com/android/settings/DeviceAdminAdd.java
+++ b/src/com/android/settings/DeviceAdminAdd.java
@@ -140,24 +140,25 @@ public class DeviceAdminAdd extends Activity {
mDPM.setActiveAdmin(mDeviceAdmin.getComponent());
setResult(Activity.RESULT_OK);
finish();
- }
- mDPM.getRemoveWarning(mDeviceAdmin.getComponent(),
- new RemoteCallback(mHandler) {
- @Override
- protected void onResult(Bundle bundle) {
- CharSequence msg = bundle != null
- ? bundle.getCharSequence(DeviceAdmin.EXTRA_DISABLE_WARNING)
- : null;
- if (msg == null) {
- mDPM.removeActiveAdmin(mDeviceAdmin.getComponent());
- finish();
- } else {
- Bundle args = new Bundle();
- args.putCharSequence(DeviceAdmin.EXTRA_DISABLE_WARNING, msg);
- showDialog(DIALOG_WARNING, args);
+ } else {
+ mDPM.getRemoveWarning(mDeviceAdmin.getComponent(),
+ new RemoteCallback(mHandler) {
+ @Override
+ protected void onResult(Bundle bundle) {
+ CharSequence msg = bundle != null
+ ? bundle.getCharSequence(DeviceAdmin.EXTRA_DISABLE_WARNING)
+ : null;
+ if (msg == null) {
+ mDPM.removeActiveAdmin(mDeviceAdmin.getComponent());
+ finish();
+ } else {
+ Bundle args = new Bundle();
+ args.putCharSequence(DeviceAdmin.EXTRA_DISABLE_WARNING, msg);
+ showDialog(DIALOG_WARNING, args);
+ }
}
- }
- });
+ });
+ }
}
});
}