Merge "Change a nullable get to getOrDefault(,false)" into tm-dev

This commit is contained in:
Beverly Tai
2022-05-10 20:34:45 +00:00
committed by Android (Google) Code Review

View File

@@ -2799,7 +2799,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
* Note: checking fingerprint enrollment directly with the AuthController requires an IPC.
*/
public boolean getCachedIsUnlockWithFingerprintPossible(int userId) {
return mIsUnlockWithFingerprintPossible.get(userId);
return mIsUnlockWithFingerprintPossible.getOrDefault(userId, false);
}
private boolean isUnlockWithFacePossible(int userId) {