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
|
@ -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 New Issue