Bug 1328868 - GeckoFontScaleListener debug logging draft
authorJan Henning <jh+bugzilla@buttercookie.de>
Sun, 05 Feb 2017 13:30:26 +0100
changeset 486575 5682d09878331294c62badc7cbe03db7b82d2d5b
parent 486574 8f88426b86f9d9a0da3e6f64313e6dc5e4f0396b
child 486576 f4d8173a9e4c71ebf70bf9374a611233c2e1ab60
child 486579 b0db0e4bbb6ec02ba462d965c3eaec841343cf9a
child 487541 27442afbb3f4b3094481cf02991e27815406f016
push id46029
push usermozilla@buttercookie.de
push dateSat, 18 Feb 2017 22:38:44 +0000
bugs1328868
milestone54.0a1
Bug 1328868 - GeckoFontScaleListener debug logging MozReview-Commit-ID: D7H9DszMQPx
mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoFontScaleListener.java
@@ -119,32 +119,35 @@ class GeckoFontScaleListener
         if (useSystemFontScale) {
             start();
         } else {
             stop();
         }
     }
 
     private void migrateOldSetting(final SharedPreferences prefs) {
+        Log.d(LOGTAG, "migrate old font size setting");
         PrefsHelper.getPref(PREF_FONT_INFLATION, new PrefsHelper.PrefHandlerBase() {
             @Override
             public void prefValue(String pref, int value) {
                 // The first setting step above "Tiny" used to correspond to a value of 80.
                 prefs.edit().putBoolean(GeckoPreferences.PREFS_SYSTEM_FONT_SIZE, (value > 60)).apply();
             }
         });
     }
 
     @Override
     public void onChange(boolean selfChange) {
+        Log.d(LOGTAG, "system setting changed");
         onSystemFontScaleChange(mApplicationContext.getContentResolver(), false);
     }
 
     @UiThread // According to the docs.
     @Override
     public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
         if (!GeckoPreferences.PREFS_SYSTEM_FONT_SIZE.equals(key)) {
             return;
         }
 
+        Log.d(LOGTAG, "shared pref changed");
         onPrefChange(sharedPreferences);
     }
 }