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

Commit c027f941 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Launch Intents from QS security footer as current user" into oc-dev

parents 36db127e 487fd351
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line

/*
 * Copyright (C) 2014 The Android Open Source Project
 *
@@ -358,9 +359,8 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
        @Override
        public void onClick(View widget) {
            final Intent intent = new Intent(Settings.ACTION_ENTERPRISE_PRIVACY_SETTINGS);
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
            mDialog.dismiss();
            mContext.startActivity(intent);
            mActivityStarter.postStartActivityDismissingKeyguard(intent, 0);
        }

        @Override
@@ -373,9 +373,8 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
        @Override
        public void onClick(View widget) {
            final Intent intent = new Intent(Settings.ACTION_VPN_SETTINGS);
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
            mDialog.dismiss();
            mContext.startActivity(intent);
            mActivityStarter.postStartActivityDismissingKeyguard(intent, 0);
        }
    }
}