diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2017-04-03 15:10:32 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-04-03 15:10:36 +0000 |
commit | 2a071d69b455399474d56cd2099e9944aec83224 (patch) | |
tree | df4af8ff99404345a40d11a44938c049ee115aba | |
parent | 1f4c17a807b477411fac7b086a0081c0a4c8562b (diff) | |
parent | e46e2b944ae074b6de6680bf6af4e09a70fe9a4f (diff) |
Merge "Launch Intents from QS security footer as current user"
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java b/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java index 4b2c20f4f7db..5b9d95d3e2c0 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java @@ -1,3 +1,4 @@ + /* * 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); } } } |