Fix app modes reorder
This commit is contained in:
parent
3114402137
commit
27bf9eb853
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue