diff options
author | Dmitry Donskoy <donskdmitry@mail.ru> | 2018-06-29 17:52:15 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-06-29 18:30:58 +0300 |
commit | 0b94be883688afff4e7212092cc5c739bc0f6582 (patch) | |
tree | 7e85b27aa545806685f358d7c2a12f621ff34aa5 /android | |
parent | a08666f7771b6b728ef26e7d547fd52318439f3b (diff) |
[android] Fixed disabling traffic mode
Diffstat (limited to 'android')
-rw-r--r-- | android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java | 12 |
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() |