-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c02098a
commit 8d4481e
Showing
4 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
8 changes: 7 additions & 1 deletion
8
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/AccountNumberView.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
package net.mullvad.mullvadvpn.compose.component | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import net.mullvad.mullvadvpn.lib.common.util.groupPasswordModeWithSpaces | ||
import net.mullvad.mullvadvpn.lib.common.util.groupWithSpaces | ||
|
||
@Composable | ||
fun AccountNumberView(accountNumber: String, doObfuscateWithPasswordDots: Boolean) { | ||
fun AccountNumberView( | ||
accountNumber: String, | ||
doObfuscateWithPasswordDots: Boolean, | ||
modifier: Modifier = Modifier | ||
) { | ||
InformationView( | ||
content = | ||
if (doObfuscateWithPasswordDots) accountNumber.groupPasswordModeWithSpaces() | ||
else accountNumber.groupWithSpaces(), | ||
modifier = modifier, | ||
whenMissing = MissingPolicy.SHOW_SPINNER | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters