diff options
author | Alexander Marchuk <alexm@maps.me> | 2015-10-24 17:16:01 +0300 |
---|---|---|
committer | Alexander Marchuk <alexm@maps.me> | 2015-10-24 17:16:01 +0300 |
commit | 25dae2eed2a30d779558922cca15fa3538097d28 (patch) | |
tree | d85d91a240eb623d707e84d2a9be70210155e7ff /android | |
parent | f76b9a570e2f64953a6a652ec6768eff478e4c6d (diff) |
[android] fix: Incorrect "New maps" marker behaviour.
Diffstat (limited to 'android')
-rw-r--r-- | android/src/com/mapswithme/maps/widget/menu/MainMenu.java | 2 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/android/src/com/mapswithme/maps/widget/menu/MainMenu.java b/android/src/com/mapswithme/maps/widget/menu/MainMenu.java index e57738236b..fb1c91e6f1 100644 --- a/android/src/com/mapswithme/maps/widget/menu/MainMenu.java +++ b/android/src/com/mapswithme/maps/widget/menu/MainMenu.java @@ -315,7 +315,7 @@ public class MainMenu public void updateMarker() { int count = ActiveCountryTree.getOutOfDateCount(); - UiUtils.showIf(!mCollapsed && (count > 0) && !isOpen(), mNewsMarker); + UiUtils.showIf((!mCollapsed || mCollapseViews.isEmpty()) && (count > 0) && !isOpen(), mNewsMarker); UiUtils.showIf(count > 0, mNewsCounter); if (count > 0) diff --git a/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java b/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java index f4004ea190..6564997735 100644 --- a/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java +++ b/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java @@ -49,9 +49,4 @@ public class MyPositionButton if (image instanceof AnimationDrawable) ((AnimationDrawable) image).start(); } - - public void click() - { - mButton.performClick(); - } } |