OSDN Git Service

Use startActivityDismissingKeyguard to show vpn setting page in keyguard
authorTony Mak <tonymak@google.com>
Thu, 9 Jun 2016 17:35:37 +0000 (18:35 +0100)
committerTony Mak <tonymak@google.com>
Thu, 9 Jun 2016 17:36:49 +0000 (18:36 +0100)
Fix: 29200690

Change-Id: I47ff08ce379b985abf84cd931f7f83e918acc5f8

packages/SystemUI/src/com/android/systemui/qs/QSFooter.java

index 51efbf0..932b4f5 100644 (file)
@@ -127,7 +127,7 @@ public class QSFooter implements OnClickListener, DialogInterface.OnClickListene
     public void onClick(DialogInterface dialog, int which) {
         if (which == DialogInterface.BUTTON_NEGATIVE) {
             final Intent settingsIntent = new Intent(ACTION_VPN_SETTINGS);
-            mContext.startActivityAsUser(settingsIntent, UserHandle.CURRENT);
+            mHost.startActivityDismissingKeyguard(settingsIntent);
         }
     }