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:
Benoit Marty 2022-07-19 12:30:38 +02:00 committed by GitHub
commit 4d4dbc958b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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