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

Commit b3effd28 authored by Hongwei Wang's avatar Hongwei Wang Committed by android-build-merger
Browse files

Merge "Check if the given user is unlocked when unlock by token" into pi-dev am: 764f123b

am: d559bd17

Change-Id: Ibd88426965b032c177d183f958e25c5649342ef3
parents d7973863 d559bd17
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -545,7 +545,7 @@ public class TrustAgentService extends Service {
     */
    public final void unlockUserWithToken(long handle, byte[] token, UserHandle user) {
        UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
        if (um.isUserUnlocked()) {
        if (um.isUserUnlocked(user)) {
            Slog.i(TAG, "User already unlocked");
            return;
        }