From a0c73ccf79db4f82e906893e251a67c25571258b Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Wed, 17 Sep 2014 15:53:39 -0700 Subject: [PATCH] Bug 1068388 - Part 3: hide stumbler settings items if stumbler isn't built. r=garvank --- mobile/android/base/preferences/GeckoPreferences.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mobile/android/base/preferences/GeckoPreferences.java b/mobile/android/base/preferences/GeckoPreferences.java index 42fa9d512567..f629e56e3e0d 100644 --- a/mobile/android/base/preferences/GeckoPreferences.java +++ b/mobile/android/base/preferences/GeckoPreferences.java @@ -684,10 +684,9 @@ OnSharedPreferenceChangeListener preferences.removePreference(pref); i--; continue; - } else if (AppConstants.RELEASE_BUILD && - (PREFS_GEO_REPORTING.equals(key) || - PREFS_GEO_LEARN_MORE.equals(key))) { - // We don't build wifi/cell tower collection in release builds, so hide the UI. + } else if (!AppConstants.MOZ_STUMBLER_BUILD_TIME_ENABLED && + (PREFS_GEO_REPORTING.equals(key) || + PREFS_GEO_LEARN_MORE.equals(key))) { preferences.removePreference(pref); i--; continue;