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:
authorDmitry Donskoy <donskdmitry@mail.ru>2018-06-29 17:52:15 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-06-29 18:30:58 +0300
commit0b94be883688afff4e7212092cc5c739bc0f6582 (patch)
tree7e85b27aa545806685f358d7c2a12f621ff34aa5 /android
parenta08666f7771b6b728ef26e7d547fd52318439f3b (diff)
[android] Fixed disabling traffic mode
Diffstat (limited to 'android')
-rw-r--r--android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java b/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java
index 1a3a3c07b1..545aee7319 100644
--- a/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java
+++ b/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java
@@ -64,9 +64,21 @@ public class MapLayerCompositeController implements MapLayerController
boolean enabled = mode.isEnabled(mActivity);
if (enabled)
+ {
turnOn();
+ }
else
+ {
turnOff();
+ turnInitialMode();
+ }
+ }
+
+ private void turnInitialMode()
+ {
+ mMasterEntry.mController.hideImmediately();
+ mMasterEntry = mChildrenEntries.iterator().next();
+ mMasterEntry.mController.showImmediately();
}
public void applyLastActiveMode()