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

This commit is contained in:
TreeHugger Robot
2023-05-09 17:08:42 +00:00
committed by Android (Google) Code Review

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(