Fix custom modes initial order

This commit is contained in:
Vitaliy 2020-01-31 13:36:00 +02:00
parent a016b138f3
commit cb6fc92842

View file

@ -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);
} }
} }