From a87d6d4d8978843dd99c754eadc622908ff9072d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliberk=20Sand=C4=B1k=C3=A7=C4=B1?= Date: Fri, 6 Dec 2024 19:50:49 +0300 Subject: [PATCH] load fonty in onCreate lastly --- app/src/main/java/org/schabi/newpipe/MainActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/MainActivity.java b/app/src/main/java/org/schabi/newpipe/MainActivity.java index 74eabb775..70f82cfe5 100644 --- a/app/src/main/java/org/schabi/newpipe/MainActivity.java +++ b/app/src/main/java/org/schabi/newpipe/MainActivity.java @@ -131,9 +131,6 @@ public class MainActivity extends AppCompatActivity { @Override protected void onCreate(final Bundle savedInstanceState) { - // Apply the preferred font globally - final String preferredFont = getPreferredFont(this); - setUpFont(preferredFont); if (DEBUG) { Log.d(TAG, "onCreate() called with: " + "savedInstanceState = [" + savedInstanceState + "]"); @@ -182,6 +179,9 @@ protected void onCreate(final Bundle savedInstanceState) { Fonty.setFonts(this); } + // Apply the preferred font globally + final String preferredFont = getPreferredFont(this); + setUpFont(preferredFont); } @Override