fixed crash when system font scale setting isn't set

This commit is contained in:
NIkita Fedrunov 2022-07-19 10:40:14 +02:00
parent ade1b7be8c
commit f37e3b71eb

View file

@ -36,6 +36,6 @@ class AndroidSystemSettingsProvider @Inject constructor(
) : SystemSettingsProvider {
override fun getSystemFontScale(): Float {
return Settings.System.getFloat(context.contentResolver, Settings.System.FONT_SCALE)
return Settings.System.getFloat(context.contentResolver, Settings.System.FONT_SCALE, 1f)
}
}