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

Commit a36525ed authored by Charles He's avatar Charles He
Browse files

Fingerprint: check current user or profile properly

Fixes a bug that causes isCurrentUserOrProfile to always return true.

Test: none
Bug: 34430969
Change-Id: I2804ac95da0c68a552a436397256e123bc8307e7
parent 02d091aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -460,7 +460,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
        UserManager um = UserManager.get(mContext);

        // Allow current user or profiles of the current user...
        for (int profileId : um.getEnabledProfileIds(userId)) {
        for (int profileId : um.getEnabledProfileIds(mCurrentUserId)) {
            if (profileId == userId) {
                return true;
            }