Bug 1201324 - Hide savedsearch feature in a nightly flag.r?

This commit is contained in:
Allison Naaktgeboren 2015-09-08 09:54:21 -07:00
parent 419641bcc2
commit 310a78f16b

View File

@ -5,6 +5,7 @@
package org.mozilla.gecko.home;
import org.mozilla.gecko.AppConstants;
import org.mozilla.gecko.db.BrowserContract.SearchHistory;
import org.mozilla.gecko.R;
import org.mozilla.gecko.Telemetry;
@ -274,7 +275,9 @@ class SearchEngineRow extends AnimatedHeightLayout {
if (suggestionsEnabled) {
final int recycledSuggestionCount = mSuggestionView.getChildCount();
final int suggestionViewCount = updateFromSearchEngine(searchEngine, animate, recycledSuggestionCount);
updateFromSavedSearches(searchTerm, animate, suggestionViewCount, recycledSuggestionCount);
if (AppConstants.NIGHTLY_BUILD) {
updateFromSavedSearches(searchTerm, animate, suggestionViewCount, recycledSuggestionCount);
}
}
}