зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1251740 - Rename searchistory to searchHistory r=me
MozReview-Commit-ID: BT0EbspbxMK --HG-- extra : rebase_source : 9796bc0e3f2b42a8497bb71830666779891426c4
This commit is contained in:
Родитель
b3cd983d79
Коммит
0df50bbc44
|
@ -395,9 +395,9 @@ class SearchEngineRow extends AnimatedHeightLayout {
|
|||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче