mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-02-28 21:38:20 +03:00
load fonty in onCreate lastly
This commit is contained in:
parent
caaab12372
commit
77028cc378
1 changed files with 5 additions and 4 deletions
|
@ -131,9 +131,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(final Bundle savedInstanceState) {
|
protected void onCreate(final Bundle savedInstanceState) {
|
||||||
// Apply the preferred font globally
|
|
||||||
final String preferredFont = getPreferredFont(this);
|
|
||||||
setUpFont(preferredFont);
|
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "onCreate() called with: "
|
Log.d(TAG, "onCreate() called with: "
|
||||||
+ "savedInstanceState = [" + savedInstanceState + "]");
|
+ "savedInstanceState = [" + savedInstanceState + "]");
|
||||||
|
@ -178,10 +175,14 @@ public class MainActivity extends AppCompatActivity {
|
||||||
&& ReleaseVersionUtil.INSTANCE.isReleaseApk()) {
|
&& ReleaseVersionUtil.INSTANCE.isReleaseApk()) {
|
||||||
UpdateSettingsFragment.askForConsentToUpdateChecks(this);
|
UpdateSettingsFragment.askForConsentToUpdateChecks(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Apply the preferred font globally
|
||||||
|
final String preferredFont = getPreferredFont(this);
|
||||||
|
setUpFont(preferredFont);
|
||||||
|
|
||||||
if (!preferredFont.equals(getString(R.string.default_font_key))) {
|
if (!preferredFont.equals(getString(R.string.default_font_key))) {
|
||||||
Fonty.setFonts(this);
|
Fonty.setFonts(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue