Add profile

This commit is contained in:
Mathieu Sanchez 2020-05-03 20:37:13 +02:00
parent 54a57b65ab
commit a914e5e0fd
2 changed files with 7 additions and 2 deletions

View File

@ -33,7 +33,12 @@ class ConfigDao(private val savePath: String) {
_config.value?.versionName = BuildConfig.VERSION_NAME _config.value?.versionName = BuildConfig.VERSION_NAME
} else { } else {
_config.value = _config.value =
Config(BuildConfig.DB_VERSION, BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE) Config(
BuildConfig.DB_VERSION,
BuildConfig.VERSION_NAME,
BuildConfig.VERSION_CODE,
-1
)
save() save()
} }
} }

View File

@ -119,7 +119,7 @@
<com.google.android.material.textfield.TextInputEditText <com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:inputType="textPostalAddress|textCapWords" android:inputType="number|textCapWords"
android:text="@={viewModel.address}" /> android:text="@={viewModel.address}" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>