diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2019-06-16 14:09:20 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2019-06-19 11:53:58 +0000 |
| commit | f340a7c86963586a2cc3c666104c6fb9b577b1aa (patch) | |
| tree | a48d4b332bd25a6cdb88e2ec71af06ba7e331b41 /android | |
| parent | 9f4d5a6ed863258bd2ff121128d95547b37f0ff5 (diff) | |
| download | mullvadvpn-f340a7c86963586a2cc3c666104c6fb9b577b1aa.tar.xz mullvadvpn-f340a7c86963586a2cc3c666104c6fb9b577b1aa.zip | |
Show toast when copying account number
Diffstat (limited to 'android')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/AccountFragment.kt | 4 | ||||
| -rw-r--r-- | android/src/main/res/values/strings.xml | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/AccountFragment.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/AccountFragment.kt index 601902c64d..8bcd8506a7 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/AccountFragment.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/AccountFragment.kt @@ -17,6 +17,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView +import android.widget.Toast import org.joda.time.DateTime @@ -99,6 +100,9 @@ class AccountFragment : Fragment() { val clipData = ClipData.newPlainText(clipLabel, accountNumberDisplay.text) clipboard.primaryClip = clipData + + Toast.makeText(parentActivity, R.string.copied_mullvad_account_number, Toast.LENGTH_SHORT) + .show() } private fun clearAccountNumber() = GlobalScope.launch(Dispatchers.Default) { diff --git a/android/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml index bbc457d229..eef3679d2a 100644 --- a/android/src/main/res/values/strings.xml +++ b/android/src/main/res/values/strings.xml @@ -20,6 +20,7 @@ <string name="account_number">Account number</string> <string name="mullvad_account_number">Mullvad account number</string> + <string name="copied_mullvad_account_number">Copied Mullvad account number</string> <string name="paid_until">Paid until</string> <string name="log_out">Log out</string> |
