diff options
| author | 2022-07-07 19:00:49 +0000 | |
|---|---|---|
| committer | 2022-07-07 19:00:49 +0000 | |
| commit | 3d79cd1bb1ce5bd0fba605a0f16790a855ee5bdf (patch) | |
| tree | f86f7215be7e111a624f23bb6ee5dd75ada296e3 /libs/androidfw/StringPool.cpp | |
| parent | bbc8dbe9657d4fd49c9f509e7aa7d96ecd85558b (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