Fix drawer and restart app
This commit is contained in:
parent
766d59feb1
commit
5d5542f2e0
2 changed files with 4 additions and 2 deletions
|
@ -1406,7 +1406,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
|
||||
public void openDrawer() {
|
||||
mapActions.updateDrawerMenu();
|
||||
boolean animate = settings.DO_NOT_USE_ANIMATIONS.get();
|
||||
boolean animate = !settings.DO_NOT_USE_ANIMATIONS.get();
|
||||
drawerLayout.openDrawer(Gravity.LEFT, animate);
|
||||
}
|
||||
|
||||
|
@ -1441,7 +1441,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
}
|
||||
|
||||
public void closeDrawer() {
|
||||
boolean animate = settings.DO_NOT_USE_ANIMATIONS.get();
|
||||
boolean animate = !settings.DO_NOT_USE_ANIMATIONS.get();
|
||||
drawerLayout.closeDrawer(Gravity.LEFT, animate);
|
||||
}
|
||||
|
||||
|
|
|
@ -519,6 +519,8 @@ public class SettingsGeneralActivity extends SettingsBaseActivity implements OnR
|
|||
restartApp();
|
||||
} else if (id.equals(settings.METRIC_SYSTEM.getId())) {
|
||||
settings.METRIC_SYSTEM_CHANGED_MANUALLY.set(true);
|
||||
} else if (id.equals(settings.DO_NOT_USE_ANIMATIONS.getId())) {
|
||||
restartApp();
|
||||
} else {
|
||||
updateAllSettings();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue