Loading src/com/android/settings/DeviceAdminAdd.java +12 −3 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.settings; package com.android.settings; import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserException; import android.app.Activity; import android.app.Activity; Loading Loading @@ -88,7 +90,7 @@ public class DeviceAdminAdd extends Activity { @Override @Override protected void onCreate(Bundle icicle) { protected void onCreate(Bundle icicle) { super.onCreate(icicle); super.onCreate(icicle); getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); mHandler = new Handler(getMainLooper()); mHandler = new Handler(getMainLooper()); mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); Loading Loading @@ -268,9 +270,16 @@ public class DeviceAdminAdd extends Activity { @Override @Override protected void onResume() { protected void onResume() { super.onResume(); super.onResume(); mActionButton.setEnabled(true); updateInterface(); updateInterface(); } } @Override protected void onPause() { super.onPause(); mActionButton.setEnabled(false); } @Override @Override protected Dialog onCreateDialog(int id, Bundle args) { protected Dialog onCreateDialog(int id, Bundle args) { switch (id) { switch (id) { Loading Loading
src/com/android/settings/DeviceAdminAdd.java +12 −3 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.settings; package com.android.settings; import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserException; import android.app.Activity; import android.app.Activity; Loading Loading @@ -88,7 +90,7 @@ public class DeviceAdminAdd extends Activity { @Override @Override protected void onCreate(Bundle icicle) { protected void onCreate(Bundle icicle) { super.onCreate(icicle); super.onCreate(icicle); getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); mHandler = new Handler(getMainLooper()); mHandler = new Handler(getMainLooper()); mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); Loading Loading @@ -268,9 +270,16 @@ public class DeviceAdminAdd extends Activity { @Override @Override protected void onResume() { protected void onResume() { super.onResume(); super.onResume(); mActionButton.setEnabled(true); updateInterface(); updateInterface(); } } @Override protected void onPause() { super.onPause(); mActionButton.setEnabled(false); } @Override @Override protected Dialog onCreateDialog(int id, Bundle args) { protected Dialog onCreateDialog(int id, Bundle args) { switch (id) { switch (id) { Loading