summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/main/kotlin
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-09-08 13:10:58 +0200
committerAlbin <albin@mullvad.net>2022-09-08 14:07:00 +0200
commit48cb79cd839a87fafda3ec0393bdd3fcfd7caa34 (patch)
treeb73294e6ac039b30a75bce79223e7996af44cbfa /android/app/src/main/kotlin
parent3472dce88c6ad79d0f64726d9263785888957391 (diff)
downloadmullvadvpn-48cb79cd839a87fafda3ec0393bdd3fcfd7caa34.tar.xz
mullvadvpn-48cb79cd839a87fafda3ec0393bdd3fcfd7caa34.zip
Fix account number ui in account settings
Changes: * Increases the size of the show/hide and copy buttons. * Auto-resize the account number if the font scaling makes it too wide.
Diffstat (limited to 'android/app/src/main/kotlin')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CopyableInformationView.kt5
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/InformationView.kt2
2 files changed, 2 insertions, 5 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CopyableInformationView.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CopyableInformationView.kt
index 7d9dc711bd..9e5d68d585 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CopyableInformationView.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CopyableInformationView.kt
@@ -11,10 +11,6 @@ import net.mullvad.mullvadvpn.R
class CopyableInformationView : InformationView {
var clipboardLabel: String? = null
- set(value) {
- field = value
- shouldEnable = value != null
- }
var copiedToast: String? = null
@@ -43,6 +39,7 @@ class CopyableInformationView : InformationView {
visibility = View.VISIBLE
setOnClickListener { copyToClipboard() }
}
+ shouldEnable = false
}
private fun loadAttributes(attributes: AttributeSet) {
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/InformationView.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/InformationView.kt
index fec64d9e14..42f78b3b4a 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/InformationView.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/InformationView.kt
@@ -92,7 +92,7 @@ open class InformationView : LinearLayout {
is Masking.None -> {
informationDisplay.transformationMethod = null
- toggleMaskingButton.visibility = GONE
+ toggleMaskingButton.visibility = INVISIBLE
}
}