MTK安卓8.1修改设置字体默认大小

frameworks/base/core/java/android/content/res/Configuration.java

public void setToDefaults() {
-        fontScale = 1;
+        fontScale = 1.15f;
+		 Log.d("ssssssss", "setToDefaults   1180 fontScale  = " +fontScale);//huizhang
         mcc = mnc = 0;
         mLocaleList = LocaleList.getEmptyLocaleList();
         locale = null;

frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

			// Set default tty mode
             loadSetting(stmt, Settings.System.TTY_MODE, 0);
			
+            loadSetting(stmt, Settings.System.FONT_SCALE, 1.15f);

             loadIntegerSetting(stmt, Settings.System.SCREEN_BRIGHTNESS,

frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/SettingsHelper.java

public class SettingsHelper {
                 return !TextUtils.isEmpty(Settings.Secure.getString(
                         mContext.getContentResolver(), name));
             case Settings.System.FONT_SCALE:
-                return Settings.System.getFloat(mContext.getContentResolver(), name, 1.0f) != 1.0f;
+                return Settings.System.getFloat(mContext.getContentResolver(), name, 1.45f) != 1.15f;
             default:
                 return false;
         }
上一篇:MTK平台如何查看modem是否正常


下一篇:WiFi6 MTK方案初试