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

Commit 2e54d5d3 authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

QS: Unlock screen when tap profile tile

Change-Id: Ie6d343bffd41c268e46a714b301338fc6bbba32d
JIRA: CYAN-1888
Issue: https://jira.cyanogenmod.org/browse/CYAN-1888


Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 618b2bd7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();
    }