Updated on 2026-08-14
This commit is contained in:
parent
0b75473cb6
commit
6aa2d4889a
3 changed files with 9 additions and 4 deletions
|
|
@ -27,7 +27,8 @@ class PayIdDialog(context: Context) : Dialog(context) {
|
|||
if (this.et_payid.text.isNullOrBlank()) {
|
||||
store.dispatch(WalletAction.CreatePayId.EmptyField)
|
||||
} else {
|
||||
val payid = this.et_payid.text!!.toString() + "\$payid.tangem.com"
|
||||
val payid = this.et_payid.text!!.toString() +
|
||||
this.context.getString(R.string.wallet_pay_id_address)
|
||||
store.dispatch(WalletAction.CreatePayId.CompleteCreatingPayId(payid))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="32dp"
|
||||
android:hint="PayID name"
|
||||
android:hint="@string/wallet_dialog_pay_id_hint"
|
||||
android:textColorHint="@color/darkGray1"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_dialog_create_payid">
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="12dp"
|
||||
android:text="$payid.tangem.com"
|
||||
android:text="@string/wallet_pay_id_address"
|
||||
android:textColor="@color/darkGray4"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/til_payid"
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
android:layout_marginTop="24dp"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="24dp"
|
||||
android:text="Your PayID is information unique to you, like your phone number, email or ABN."
|
||||
android:text="@string/wallet_dialog_pay_id_description"
|
||||
android:textColor="@color/darkGray4"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@
|
|||
|
||||
<string name="wallet_dialog_pay_id_button">Create PayID</string>
|
||||
<string name="wallet_create_payid_empty">Enter desired PayID first</string>
|
||||
<string name="wallet_dialog_pay_id_hint">PayID name</string>
|
||||
<string name="wallet_pay_id_address">$payid.tangem.com</string>
|
||||
<string name="wallet_dialog_pay_id_description">Your PayID is information unique to you, like your phone number, email or ABN.</string>
|
||||
|
||||
|
||||
<string name="error_payid_already_created">This PayID already exists. Try a different one.</string>
|
||||
<string name="error_creating_payid">Error response while creating PayID.</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue