Merge "Unlocked empty auth entry shouldn't be clickable anymore" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
02416e1589
@@ -561,7 +561,12 @@ fun AuthenticationEntryRow(
|
|||||||
enforceOneLine: Boolean = false,
|
enforceOneLine: Boolean = false,
|
||||||
) {
|
) {
|
||||||
Entry(
|
Entry(
|
||||||
onClick = { onEntrySelected(authenticationEntryInfo) },
|
onClick = if (authenticationEntryInfo.isUnlockedAndEmpty) {
|
||||||
|
{}
|
||||||
|
} // No-op
|
||||||
|
else {
|
||||||
|
{ onEntrySelected(authenticationEntryInfo) }
|
||||||
|
},
|
||||||
iconImageBitmap = authenticationEntryInfo.icon.toBitmap().asImageBitmap(),
|
iconImageBitmap = authenticationEntryInfo.icon.toBitmap().asImageBitmap(),
|
||||||
entryHeadlineText = authenticationEntryInfo.title,
|
entryHeadlineText = authenticationEntryInfo.title,
|
||||||
entrySecondLineText = stringResource(
|
entrySecondLineText = stringResource(
|
||||||
|
|||||||
Reference in New Issue
Block a user