Bug 1068388 - Part 3: hide stumbler settings items if stumbler isn't built. r=garvank

This commit is contained in:
Richard Newman 2014-09-17 15:53:39 -07:00
parent f565fe02c4
commit ca5398df99

View File

@ -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;