From 5d5542f2e06c642e910b479f7747d630c1e3a4a1 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Tue, 29 Aug 2017 11:06:05 +0300 Subject: [PATCH] Fix drawer and restart app --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 4 ++-- .../net/osmand/plus/activities/SettingsGeneralActivity.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 4bef82ee39..13f4c7d0ea 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -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); } diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java index 4fe0246bf4..3fa6974167 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java @@ -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(); }