mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-19 04:38:44 +03:00
fixed crash when system font scale setting isn't set
This commit is contained in:
parent
ade1b7be8c
commit
f37e3b71eb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue