Fix the null toString logic.

Test: manual (see bug for screenshot)
Bug: 280896321
Change-Id: Ied05c43a09d6a2086dc60d7c9d5cb1d35a8bba91
This commit is contained in:
Helen Qin
2023-05-05 00:21:30 +00:00
parent 9e6c6ca843
commit d2786a80ca

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),