mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-03 06:48:20 +03:00
trying...
This commit is contained in:
parent
e2f7aba57f
commit
9faaa781d6
2 changed files with 6 additions and 3 deletions
|
@ -89,6 +89,8 @@ public class App extends Application {
|
|||
return;
|
||||
}
|
||||
|
||||
FontManager.init(this);
|
||||
|
||||
// check if the last used preference version is set
|
||||
// to determine whether this is the first app run
|
||||
final int lastUsedPrefVersion = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
|
@ -103,7 +105,6 @@ public class App extends Application {
|
|||
Localization.getPreferredContentCountry(this));
|
||||
Localization.initPrettyTime(Localization.resolvePrettyTime(getApplicationContext()));
|
||||
|
||||
FontManager.init(this);
|
||||
BridgeStateSaverInitializer.init(this);
|
||||
StateSaver.init(this);
|
||||
initNotificationChannels();
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.content.Context;
|
|||
import android.content.SharedPreferences;
|
||||
import androidx.preference.PreferenceManager;
|
||||
import com.marcinorlowski.fonty.Fonty;
|
||||
import org.schabi.newpipe.R;
|
||||
//import org.schabi.newpipe.R;
|
||||
|
||||
|
||||
public final class FontManager {
|
||||
|
@ -20,7 +20,8 @@ public final class FontManager {
|
|||
public static String getPreferredFont(final Context context) {
|
||||
final SharedPreferences preferences = PreferenceManager
|
||||
.getDefaultSharedPreferences(context);
|
||||
return preferences.getString("preferred_font", (getString(R.string.default_font_key)));
|
||||
// return preferences.getString("preferred_font", (getString(R.string.default_font_key)));
|
||||
return preferences.getString("preferred_font", "system");
|
||||
}
|
||||
|
||||
// build the relevant font TypeFace
|
||||
|
@ -62,4 +63,5 @@ public final class FontManager {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue