allow customizing the default font size

This commit is contained in:
tibbi 2020-02-05 12:20:34 +01:00
parent 13a252f79c
commit 3133d4c8ea
3 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.22.0'
propVersionName = '5.22.2'
kotlin_version = '1.3.61'
}

View file

@ -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()
}

View file

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="default_sorting">1</integer>
<integer name="default_font_size">1</integer>
</resources>