Merge "Fix the null toString logic." into udc-dev

This commit is contained in:
Treehugger Robot
2023-05-05 02:26:39 +00:00
committed by Android (Google) Code Review

View File

@@ -286,7 +286,8 @@ class GetFlowUtils {
pendingIntent = credentialEntry.pendingIntent,
fillInIntent = it.frameworkExtrasIntent,
credentialType = CredentialType.UNKNOWN,
credentialTypeDisplayName = credentialEntry.typeDisplayName.toString(),
credentialTypeDisplayName =
credentialEntry.typeDisplayName?.toString().orEmpty(),
userName = credentialEntry.title.toString(),
displayName = credentialEntry.subtitle?.toString(),
icon = credentialEntry.icon.loadDrawable(context),