Fix potential crash search history
This commit is contained in:
parent
141c7173f5
commit
8919740cf9
1 changed files with 2 additions and 2 deletions
|
@ -40,10 +40,10 @@ public class SearchHistoryHelper {
|
||||||
};
|
};
|
||||||
|
|
||||||
private static Comparator<HistoryEntry> historyEntryComparator = new Comparator<HistoryEntry>() {
|
private static Comparator<HistoryEntry> historyEntryComparator = new Comparator<HistoryEntry>() {
|
||||||
|
long time = System.currentTimeMillis();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(HistoryEntry lhs, HistoryEntry rhs) {
|
public int compare(HistoryEntry lhs, HistoryEntry rhs) {
|
||||||
long time = System.currentTimeMillis();
|
|
||||||
double l = lhs.getRank(time);
|
double l = lhs.getRank(time);
|
||||||
double r = rhs.getRank(time);
|
double r = rhs.getRank(time);
|
||||||
return -Double.compare(l, r);
|
return -Double.compare(l, r);
|
||||||
|
|
Loading…
Reference in a new issue