Fix custom modes initial order
This commit is contained in:
parent
a016b138f3
commit
cb6fc92842
1 changed files with 3 additions and 0 deletions
|
@ -518,7 +518,10 @@ public class ApplicationMode {
|
||||||
for (String appModeKey : settings.getCustomAppModesKeys()) {
|
for (String appModeKey : settings.getCustomAppModesKeys()) {
|
||||||
Object profilePreferences = settings.getProfilePreferences(appModeKey);
|
Object profilePreferences = settings.getProfilePreferences(appModeKey);
|
||||||
String parent = settings.PARENT_APP_MODE.getValue(profilePreferences, null);
|
String parent = settings.PARENT_APP_MODE.getValue(profilePreferences, null);
|
||||||
|
int order = settings.APP_MODE_ORDER.getValue(profilePreferences, values.size());
|
||||||
|
|
||||||
ApplicationModeBuilder builder = createCustomMode(valueOfStringKey(parent, CAR), appModeKey);
|
ApplicationModeBuilder builder = createCustomMode(valueOfStringKey(parent, CAR), appModeKey);
|
||||||
|
builder.setOrder(order);
|
||||||
builder.customReg(app);
|
builder.customReg(app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue