mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Merge pull request #6590 from vector-im/bugfix/nfe/missing_font_scale_setting
fixed crash when system font scale setting isn't set
This commit is contained in:
commit
4d4dbc958b
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…
Reference in a new issue