Set +1 prefix by default

This commit is contained in:
Sylvain Berfini 2023-09-08 14:18:27 +02:00
parent b220d979bd
commit bd523f307b
2 changed files with 4 additions and 2 deletions

View file

@ -219,6 +219,8 @@ class AccountCreationViewModel @UiThread constructor() : ViewModel(), CountryPic
}
init {
internationalPrefix.value = "+1"
coreContext.postOnCoreThread { core ->
accountCreator = core.createAccountCreator(core.accountCreatorUrl)
accountCreator.addListener(accountCreatorListener)

View file

@ -137,7 +137,7 @@
android:id="@+id/phone_number"
android:layout_width="0dp"
android:layout_height="50dp"
android:paddingStart="90dp"
android:paddingStart="95dp"
android:paddingEnd="20dp"
android:text="@={viewModel.phoneNumber, default=`6 01 02 03 04 05`}"
android:textSize="14sp"
@ -156,7 +156,7 @@
android:onClick="@{showCountryPickerClickListener}"
style="@style/default_text_style"
android:id="@+id/prefix"
android:layout_width="wrap_content"
android:layout_width="90dp"
android:layout_height="0dp"
android:paddingStart="20dp"
android:text="@{viewModel.internationalPrefix, default=`+33`}"