summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-09-01 00:56:22 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-09-01 00:56:22 +0200
commit2e54d5d3251823be796aa7dc62b12ff1ce88f75d (patch)
tree5fddc08fd3d652200dd58aa5b7b2993f52b351d4 /packages
parent618b2bd792615af012cef0a2c98de8ce9410b44d (diff)
downloadframeworks_base-2e54d5d3251823be796aa7dc62b12ff1ce88f75d.zip
frameworks_base-2e54d5d3251823be796aa7dc62b12ff1ce88f75d.tar.gz
frameworks_base-2e54d5d3251823be796aa7dc62b12ff1ce88f75d.tar.bz2
QS: Unlock screen when tap profile tile
Change-Id: Ie6d343bffd41c268e46a714b301338fc6bbba32d JIRA: CYAN-1888 Issue: https://jira.cyanogenmod.org/browse/CYAN-1888 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java b/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java
index 47cb511..2850a48 100644
--- a/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java
+++ b/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java
@@ -22,9 +22,11 @@ import android.app.ProfileManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
+import android.os.RemoteException;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
+import android.view.WindowManagerGlobal;
import com.android.server.ProfileManagerService;
import com.android.systemui.R;
@@ -118,6 +120,10 @@ public class ProfileTile extends QuickSettingsTile {
}).create();
mStatusbarService.animateCollapsePanels();
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
+ try {
+ WindowManagerGlobal.getWindowManagerService().dismissKeyguard();
+ } catch (RemoteException e) {
+ }
dialog.show();
}