mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Increase default font size
This commit is contained in:
parent
0e7c5cb946
commit
0d5cf035a9
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ public class ThemeHelper {
|
|||
*/
|
||||
public static void adjustFontScale(Activity activity, Configuration configuration) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||
configuration.fontScale = prefs.getFloat(activity.getString(R.string.SET_FONT_SCALE), 1.0f);
|
||||
configuration.fontScale = prefs.getFloat(activity.getString(R.string.SET_FONT_SCALE), 1.1f);
|
||||
DisplayMetrics metrics = activity.getResources().getDisplayMetrics();
|
||||
WindowManager wm = (WindowManager) activity.getSystemService(WINDOW_SERVICE);
|
||||
wm.getDefaultDisplay().getMetrics(metrics);
|
||||
|
|
Loading…
Reference in a new issue