Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a405e7b7 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Add optional permission review for legacy apps - settings"

parents 02cde0a2 c7f02876
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -303,16 +303,16 @@ public class DeviceAdminAdd extends Activity {
                    }
                    mWaitingForRemoveMsg = true;
                    mDPM.getRemoveWarning(mDeviceAdmin.getComponent(),
                            new RemoteCallback(mHandler) {
                            new RemoteCallback(new RemoteCallback.OnResultListener() {
                                @Override
                        protected void onResult(Bundle bundle) {
                            CharSequence msg = bundle != null
                                    ? bundle.getCharSequence(
                                public void onResult(Bundle result) {
                                    CharSequence msg = result != null
                                            ? result.getCharSequence(
                                            DeviceAdminReceiver.EXTRA_DISABLE_WARNING)
                                            : null;
                                    continueRemoveAction(msg);
                                }
                    });
                            }, mHandler));
                    // Don't want to wait too long.
                    getWindow().getDecorView().getHandler().postDelayed(new Runnable() {
                        @Override public void run() {