Fix search crash

This commit is contained in:
Alexey Kulish 2016-11-04 12:03:55 +03:00
parent 11485e15e4
commit 93ee78f05a

View file

@ -109,7 +109,7 @@ public class SearchUICore {
int k = 0;
boolean same = false;
while(searchResults.size() > k && k < DEPTH_TO_CHECK_SAME_SEARCH_RESULTS) {
if(sameSearchResult(addedResult, searchResults.get(searchResults.size() - k))) {
if(sameSearchResult(addedResult, searchResults.get(searchResults.size() - k - 1))) {
same = true;
break;
}