Bug 1251740 - Rename searchistory to searchHistory r=me
MozReview-Commit-ID: BT0EbspbxMK
--- a/mobile/android/base/java/org/mozilla/gecko/home/SearchEngineRow.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/SearchEngineRow.java
@@ -390,19 +390,19 @@ class SearchEngineRow extends AnimatedHe
final int recycledSuggestionCount = mSuggestionView.getChildCount();
final SharedPreferences prefs = GeckoSharedPrefs.forApp(getContext());
final boolean savedSearchesEnabled = prefs.getBoolean(GeckoPreferences.PREFS_HISTORY_SAVED_SEARCH, true);
// Remove duplicates of search engine suggestions from saved searches.
List<String> searchHistorySuggestions = (rawSearchHistorySuggestions != null) ? rawSearchHistorySuggestions : new ArrayList<String>();
// Filter out URLs and long search suggestions
- Iterator<String> searchistoryIterator = searchHistorySuggestions.iterator();
- while (searchistoryIterator.hasNext()) {
- final String currentSearchHistory = searchistoryIterator.next();
+ Iterator<String> searchHistoryIterator = searchHistorySuggestions.iterator();
+ while (searchHistoryIterator.hasNext()) {
+ final String currentSearchHistory = searchHistoryIterator.next();
if (currentSearchHistory.length() > 50 || Pattern.matches("^(https?|ftp|file)://.*", currentSearchHistory)) {
searchHistorySuggestions.remove(currentSearchHistory);
}
}
List<String> searchEngineSuggestions = new ArrayList<String>();