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

Commit c8b9de67 authored by David van Tonder's avatar David van Tonder Committed by Gerrit Code Review
Browse files

Merge "QS: Unlock screen when tap profile tile" into cm-10.2

parents 20016c9a 4446b05f
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();
    }