Skip to content

Commit

Permalink
load fonty in onCreate lastly
Browse files Browse the repository at this point in the history
  • Loading branch information
asandikci committed Dec 6, 2024
1 parent caaab12 commit a87d6d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/org/schabi/newpipe/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "]");
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a87d6d4

Please sign in to comment.