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:
-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
+}