Merge "Unlocked empty auth entry shouldn't be clickable anymore" into udc-dev am: 02416e1589

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23104897

Change-Id: I1a6f13817f1c687a394495b347057b8d383fbbe0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2023-05-09 17:23:05 +00:00
committed by Automerger Merge Worker

View File

@@ -561,7 +561,12 @@ fun AuthenticationEntryRow(
enforceOneLine: Boolean = false,
) {
Entry(
onClick = { onEntrySelected(authenticationEntryInfo) },
onClick = if (authenticationEntryInfo.isUnlockedAndEmpty) {
{}
} // No-op
else {
{ onEntrySelected(authenticationEntryInfo) }
},
iconImageBitmap = authenticationEntryInfo.icon.toBitmap().asImageBitmap(),
entryHeadlineText = authenticationEntryInfo.title,
entrySecondLineText = stringResource(