Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3265a1a authored by Helen Qin's avatar Helen Qin Committed by Android (Google) Code Review
Browse files

Merge "Remove ***** shown in get-flow password's credential card" into main

parents 403a5df8 8b786adb
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -554,15 +554,11 @@ fun CredentialEntryRow(
        if (credentialEntryInfo.icon == null) painterResource(R.drawable.ic_other_sign_in_24)
        else null,
        entryHeadlineText = username,
        entrySecondLineText = if (
            credentialEntryInfo.credentialType == CredentialType.PASSWORD) {
            "••••••••••••"
        } else {
            val itemsToDisplay = listOf(
        entrySecondLineText = listOf(
                displayName,
                credentialEntryInfo.credentialTypeDisplayName,
                credentialEntryInfo.providerDisplayName
            ).filterNot(TextUtils::isEmpty)
        ).filterNot(TextUtils::isEmpty).let { itemsToDisplay ->
            if (itemsToDisplay.isEmpty()) null
            else itemsToDisplay.joinToString(
                separator = stringResource(R.string.get_dialog_sign_in_type_username_separator)