fix sort
This commit is contained in:
parent
2b794f9b46
commit
919e488ea0
1 changed files with 5 additions and 1 deletions
|
@ -415,7 +415,11 @@ public class LiveUpdatesFragment extends BaseOsmAndDialogFragment implements OnL
|
|||
public int compare(LocalIndexInfo o1, LocalIndexInfo o2) {
|
||||
CommonPreference<Boolean> preference1 = preferenceForLocalIndex(o1.getFileName(), getSettings());
|
||||
CommonPreference<Boolean> preference2 = preferenceForLocalIndex(o2.getFileName(), getSettings());
|
||||
return preference2.get().compareTo(preference1.get());
|
||||
int prefSort = preference2.get().compareTo(preference1.get());
|
||||
if (prefSort != 0) {
|
||||
return prefSort;
|
||||
}
|
||||
return o1.compareTo(o2);
|
||||
}
|
||||
});
|
||||
notifyDataSetInvalidated();
|
||||
|
|
Loading…
Reference in a new issue