From a914e5e0fde3cf517897c25e86f0e4ea2ac9871b Mon Sep 17 00:00:00 2001 From: Mathieu Sanchez Date: Sun, 3 May 2020 20:37:13 +0200 Subject: [PATCH] Add profile --- .../sanchezm/attestationsCovid19/data/db/dao/ConfigDao.kt | 7 ++++++- app/src/main/res/layout/fragment_add_attestation.xml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/sanchezm/attestationsCovid19/data/db/dao/ConfigDao.kt b/app/src/main/java/fr/sanchezm/attestationsCovid19/data/db/dao/ConfigDao.kt index eef99b9..5a1224f 100644 --- a/app/src/main/java/fr/sanchezm/attestationsCovid19/data/db/dao/ConfigDao.kt +++ b/app/src/main/java/fr/sanchezm/attestationsCovid19/data/db/dao/ConfigDao.kt @@ -33,7 +33,12 @@ class ConfigDao(private val savePath: String) { _config.value?.versionName = BuildConfig.VERSION_NAME } else { _config.value = - Config(BuildConfig.DB_VERSION, BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE) + Config( + BuildConfig.DB_VERSION, + BuildConfig.VERSION_NAME, + BuildConfig.VERSION_CODE, + -1 + ) save() } } diff --git a/app/src/main/res/layout/fragment_add_attestation.xml b/app/src/main/res/layout/fragment_add_attestation.xml index 4ec5afc..0b5c6d1 100644 --- a/app/src/main/res/layout/fragment_add_attestation.xml +++ b/app/src/main/res/layout/fragment_add_attestation.xml @@ -119,7 +119,7 @@