Fingerprint: check current user or profile properly
Fixes a bug that causes isCurrentUserOrProfile to always return true. Test: none Bug: 34430969 Change-Id: I2804ac95da0c68a552a436397256e123bc8307e7
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user