From da367ac0c0958c610960efa5d39743261d3510d9 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 25 Dec 2022 16:34:41 +0100 Subject: [PATCH] Fix issue #675 - Chars sizes not applied for Android 5 --- .../java/app/fedilab/android/activities/BaseActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/activities/BaseActivity.java b/app/src/main/java/app/fedilab/android/activities/BaseActivity.java index 5070af57..87193a7c 100644 --- a/app/src/main/java/app/fedilab/android/activities/BaseActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/BaseActivity.java @@ -35,6 +35,7 @@ import com.vanniktech.emoji.one.EmojiOneProvider; import app.fedilab.android.R; import app.fedilab.android.helper.Helper; +import app.fedilab.android.helper.ThemeHelper; @SuppressLint("Registered") @@ -127,6 +128,9 @@ public class BaseActivity extends AppCompatActivity { } } super.onCreate(savedInstanceState); + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N) { + ThemeHelper.adjustFontScale(this, getResources().getConfiguration()); + } if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { Window window = getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);