Fix app modes reorder

This commit is contained in:
Vitaliy 2020-01-09 19:06:13 +02:00
parent 3114402137
commit 27bf9eb853

View file

@ -673,6 +673,13 @@ public class ApplicationMode {
Collections.sort(values, comparator);
Collections.sort(defaultValues, comparator);
Collections.sort(cachedFilteredValues, comparator);
updateAppModesOrder();
}
private static void updateAppModesOrder() {
for (int i = 0; i < values.size(); i++) {
values.get(i).setOrder(i);
}
}
public static ApplicationModeBuilder fromJson(OsmandApplication app, String json) {