diff options
author | Александр Зацепин <az@mapswithme.com> | 2020-02-25 15:22:06 +0300 |
---|---|---|
committer | yoksnod <donskdmitry@mail.ru> | 2020-02-25 16:14:12 +0300 |
commit | d570f61e432df4a9034cfe33447cc60f1296a422 (patch) | |
tree | a3770ad3e731407e8075688f3f57747401ac26af /android/src/com/mapswithme/maps | |
parent | 59cd1ac2454821fcec93c7d031a67205a605409e (diff) |
[android] Reused hide/show methods from UiUtil class
Diffstat (limited to 'android/src/com/mapswithme/maps')
-rw-r--r-- | android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java | 3 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/maplayer/subway/DefaultMapLayerController.java | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java b/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java index 3d2c8ae726..2f40e17856 100644 --- a/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java +++ b/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java @@ -51,8 +51,9 @@ public class MapLayerCompositeController implements MapLayerController subway.setOnClickListener(dialogClickListener); DefaultMapLayerController subwayMapLayerController = new DefaultMapLayerController(subway); - DefaultMapLayerController isoLinesController = new DefaultMapLayerController(isoLinesView); isoLinesView.setOnClickListener(dialogClickListener); + DefaultMapLayerController isoLinesController = new DefaultMapLayerController(isoLinesView); + ControllerAndMode subwayEntry = new ControllerAndMode(Mode.SUBWAY, Tutorial.SUBWAY, subwayMapLayerController); ControllerAndMode trafficEntry = new ControllerAndMode(Mode.TRAFFIC, null, diff --git a/android/src/com/mapswithme/maps/maplayer/subway/DefaultMapLayerController.java b/android/src/com/mapswithme/maps/maplayer/subway/DefaultMapLayerController.java index 0d06c24aee..570f7933cc 100644 --- a/android/src/com/mapswithme/maps/maplayer/subway/DefaultMapLayerController.java +++ b/android/src/com/mapswithme/maps/maplayer/subway/DefaultMapLayerController.java @@ -39,7 +39,7 @@ public class DefaultMapLayerController implements MapLayerController @Override public void showImmediately() { - mLayerView.setVisibility(View.VISIBLE); + UiUtils.show(mLayerView); } @Override @@ -51,7 +51,7 @@ public class DefaultMapLayerController implements MapLayerController @Override public void hideImmediately() { - mLayerView.setVisibility(View.GONE); + UiUtils.hide(mLayerView); } @Override |