Fix potential crash search history

This commit is contained in:
Victor Shcherb 2017-04-25 10:14:19 +02:00
parent 141c7173f5
commit 8919740cf9

View file

@ -40,10 +40,10 @@ public class SearchHistoryHelper {
};
private static Comparator<HistoryEntry> historyEntryComparator = new Comparator<HistoryEntry>() {
long time = System.currentTimeMillis();
@Override
public int compare(HistoryEntry lhs, HistoryEntry rhs) {
long time = System.currentTimeMillis();
double l = lhs.getRank(time);
double r = rhs.getRank(time);
return -Double.compare(l, r);