Increase default font size
This commit is contained in:
parent
0e7c5cb946
commit
0d5cf035a9
|
@ -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 New Issue