From 2e54d5d3251823be796aa7dc62b12ff1ce88f75d Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sun, 1 Sep 2013 00:56:22 +0200 Subject: 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 --- .../src/com/android/systemui/quicksettings/ProfileTile.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); } -- cgit v1.1