summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-07-07 19:00:49 +0000
committer Eric Biggers <ebiggers@google.com> 2022-07-07 19:00:49 +0000
commit3d79cd1bb1ce5bd0fba605a0f16790a855ee5bdf (patch)
treef86f7215be7e111a624f23bb6ee5dd75ada296e3 /libs/androidfw/StringPool.cpp
parentbbc8dbe9657d4fd49c9f509e7aa7d96ecd85558b (diff)
Fix misleading code in sendCredentialsOnUnlockIfRequired()
lockScreenSecretAvailable() takes a @NonNull credential, so the code in sendCredentialsOnUnlockIfRequired() that conditionally passes a null credential is incorrect. This doesn't actually matter, since sendCredentialsOnUnlockIfRequired() is never called with CREDENTIAL_TYPE_NONE anyway. But make it do the more logical thing of skipping the call to lockScreenSecretAvailable() in this case. Test: atest com.android.server.locksettings Change-Id: I026f72ccaadef94a2f43cb6c2a70e8c08d21360c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions