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:
Charles He
2017-01-18 20:03:47 +00:00
parent 02d091aa2a
commit a36525ed10

View File

@@ -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;
}