Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show account number when copying to clipboard #7865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kl
Copy link
Contributor

@kl kl commented Mar 21, 2025


This change is Reviewable

Copy link

linear bot commented Mar 21, 2025

@kl kl added the Android Issues related to Android label Mar 21, 2025
Copy link
Contributor

@Pururun Pururun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/Clipboard.kt line 40 at r1 (raw file):

                    description.extras =
                        PersistableBundle().apply {
                            putBoolean("android.content.extra.IS_SENSITIVE", isSensitive)

Should be a constant


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/WelcomeScreen.kt line 291 at r1 (raw file):

    val copiedAccountNumberMessage = stringResource(id = R.string.copied_mullvad_account_number)
    val copyToClipboard =
        createCopyToClipboardHandle(snackbarHostState = snackbarHostState, isSensitive = true)

Not super important, but do we really need it in the WelcomeScreen? We already show the account number in plain text anyway?

@kl kl force-pushed the do-not-show-account-number-when-copying-to-clipboard-droid-1875 branch from 68140a9 to 5ec9994 Compare March 21, 2025 14:32
Copy link
Contributor Author

@kl kl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 3 of 4 files reviewed, 2 unresolved discussions (waiting on @albin-mullvad, @Pururun, and @Rawa)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/WelcomeScreen.kt line 291 at r1 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Not super important, but do we really need it in the WelcomeScreen? We already show the account number in plain text anyway?

I don't have a strong preference either way. @Rawa @albin-mullvad opinions here?


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/Clipboard.kt line 40 at r1 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Should be a constant

Done.

@kl kl force-pushed the do-not-show-account-number-when-copying-to-clipboard-droid-1875 branch from 5ec9994 to d0ac1a1 Compare March 21, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants