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

Commit 8b786adb authored by Helen Qin's avatar Helen Qin
Browse files

Remove ***** shown in get-flow password's credential card

We use to render a password credential with its username and then
obfuscatioin, i.e. ******.

Now we will render a password credential just like how we render other
types of credentials, displaying its username, display name (if any),
credential type, provider name.

Bug: 326493266
Test: screenshots in bug
Change-Id: Ib2040815eb1d1c35711bfc8e3769088ae0d96c73
parent ef8c8026
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)