pull/1415/head
gedoor 3 years ago
parent 158cc72eac
commit 2aceea26c3
  1. 2
      app/src/main/java/io/legado/app/base/AppContextWrapper.kt

@ -16,7 +16,7 @@ object AppContextWrapper {
fun wrap(context: Context): Context {
var fontScale = context.getPrefInt(PreferKey.fontScale) / 10f
if (fontScale !in 0.8f..1.6f) {
fontScale = Configuration().fontScale
fontScale = 0f
}
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val resources: Resources = context.resources

Loading…
Cancel
Save