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:
authorАлександр Зацепин <az@mapswithme.com>2020-02-25 15:22:06 +0300
committeryoksnod <donskdmitry@mail.ru>2020-02-25 16:14:12 +0300
commitd570f61e432df4a9034cfe33447cc60f1296a422 (patch)
treea3770ad3e731407e8075688f3f57747401ac26af /android/src/com/mapswithme
parent59cd1ac2454821fcec93c7d031a67205a605409e (diff)
[android] Reused hide/show methods from UiUtil class
Diffstat (limited to 'android/src/com/mapswithme')
-rw-r--r--android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java3
-rw-r--r--android/src/com/mapswithme/maps/maplayer/subway/DefaultMapLayerController.java4
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