Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2017-06-19 20:26:03 +0300
committerGitHub <noreply@github.com>2017-06-19 20:26:03 +0300
commite87cb35b081ece4aed5cdbc8bf5f6632fd139b13 (patch)
tree171aba814f9d5e231d800e6016bb8167acedbb6c
parentf474544a17887de3c3d4a0b0225a8f0ded525a72 (diff)
parentc113b567d8732d2f4e44fef8de7c9804305c4451 (diff)
Merge pull request #6314 from alexzatsepin/MAPSME-4759-fix-navigation-menu-showingandroid-gr-737
Removed unnecessary closing navigation menu
-rw-r--r--android/src/com/mapswithme/maps/widget/menu/BaseMenu.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/widget/menu/BaseMenu.java b/android/src/com/mapswithme/maps/widget/menu/BaseMenu.java
index 7b6004c362..388400b7ca 100644
--- a/android/src/com/mapswithme/maps/widget/menu/BaseMenu.java
+++ b/android/src/com/mapswithme/maps/widget/menu/BaseMenu.java
@@ -228,6 +228,9 @@ public abstract class BaseMenu
public void show(boolean show)
{
+ if (show && mFrame.isShown())
+ return;
+
close(false);
UiUtils.showIf(show, mFrame);
}
@@ -242,4 +245,4 @@ public abstract class BaseMenu
protected void setToggleState(boolean open, boolean animate) {}
protected abstract @DimenRes int getHeightResId();
-} \ No newline at end of file
+}