Add optional permission review for legacy apps - settings

Change-Id: I80058d093abf5d131cf7befba2eec5239ff854eb
diff --git a/src/com/android/settings/DeviceAdminAdd.java b/src/com/android/settings/DeviceAdminAdd.java
index 19ad25b..acd8c3b 100644
--- a/src/com/android/settings/DeviceAdminAdd.java
+++ b/src/com/android/settings/DeviceAdminAdd.java
@@ -303,16 +303,16 @@
                     }
                     mWaitingForRemoveMsg = true;
                     mDPM.getRemoveWarning(mDeviceAdmin.getComponent(),
-                            new RemoteCallback(mHandler) {
-                        @Override
-                        protected void onResult(Bundle bundle) {
-                            CharSequence msg = bundle != null
-                                    ? bundle.getCharSequence(
+                            new RemoteCallback(new RemoteCallback.OnResultListener() {
+                                @Override
+                                public void onResult(Bundle result) {
+                                    CharSequence msg = result != null
+                                            ? result.getCharSequence(
                                             DeviceAdminReceiver.EXTRA_DISABLE_WARNING)
-                                    : null;
-                            continueRemoveAction(msg);
-                        }
-                    });
+                                            : null;
+                                    continueRemoveAction(msg);
+                                }
+                            }, mHandler));
                     // Don't want to wait too long.
                     getWindow().getDecorView().getHandler().postDelayed(new Runnable() {
                         @Override public void run() {