Bug 1328868 - GeckoFontScaleListener debug logging draft
authorJan Henning <jh+bugzilla@buttercookie.de>
Sun, 05 Feb 2017 13:30:26 +0100
changeset 482208 03bb439e0286d6c1b996fef74c064f0ea85cae3a
parent 482207 c71797217421658566e2051e0aacdf7aa721deab
child 482209 2c177d70f14832a74f5ea13ae77bb8e6ef879d34
push id45027
push usermozilla@buttercookie.de
push dateSat, 11 Feb 2017 13:34:50 +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
@@ -124,32 +124,35 @@ public 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);
     }
 }