From 2aceea26c3a2a2fa0b93406560fa3774b58a75ba Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 22 Oct 2021 12:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/base/AppContextWrapper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/base/AppContextWrapper.kt b/app/src/main/java/io/legado/app/base/AppContextWrapper.kt index 7ef7026d3..04ce0e86e 100644 --- a/app/src/main/java/io/legado/app/base/AppContextWrapper.kt +++ b/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