From 926e9099bbcd176255e83702fef8319eec0fed6f Mon Sep 17 00:00:00 2001 From: Dominik Dzienia Date: Thu, 15 Oct 2020 20:03:36 +0200 Subject: [PATCH] Fixes import of legacy preferences --- .../plugins/general/maintenance/formats/ClassicPrefsFormat.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/formats/ClassicPrefsFormat.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/formats/ClassicPrefsFormat.kt index 40b1ceada4..f264e7c06d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/formats/ClassicPrefsFormat.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/formats/ClassicPrefsFormat.kt @@ -22,7 +22,7 @@ class ClassicPrefsFormat @Inject constructor( override fun isPreferencesFile(file: File, preloadedContents: String?): Boolean { val contents = preloadedContents ?: storage.getFileContents(file) - return contents.contains("units::" + Constants.MGDL) || contents.contains("units::" + Constants.MMOL) + return contents.contains("units::" + Constants.MGDL) || contents.contains("units::" + Constants.MMOL) || contents.contains("language::") || contents.contains("I_understand::") } override fun savePreferences(file: File, prefs: Prefs, masterPassword: String?) {