diff --git a/build.gradle b/build.gradle index 0ba2f5f2a..c915b3844 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '5.22.0' + propVersionName = '5.22.2' kotlin_version = '1.3.61' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt index b54acde7d..dd5d96e7c 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt @@ -373,6 +373,6 @@ open class BaseConfig(val context: Context) { set(lastExportedSettingsFile) = prefs.edit().putString(LAST_EXPORTED_SETTINGS_FILE, lastExportedSettingsFile).apply() var fontSize: Int - get() = prefs.getInt(FONT_SIZE, FONT_SIZE_MEDIUM) + get() = prefs.getInt(FONT_SIZE, context.resources.getInteger(R.integer.default_font_size)) set(size) = prefs.edit().putInt(FONT_SIZE, size).apply() } diff --git a/commons/src/main/res/values/integers.xml b/commons/src/main/res/values/integers.xml index 4e8d55578..45f145fd4 100644 --- a/commons/src/main/res/values/integers.xml +++ b/commons/src/main/res/values/integers.xml @@ -1,4 +1,5 @@ 1 + 1