From 18642eab81fcf5791b53309754c18b1be9ee1a54 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Thu, 21 Jul 2016 12:13:03 +0300 Subject: [PATCH] [Quick search] revert compass button --- .../src/net/osmand/plus/search/QuickSearchDialogFragment.java | 1 - OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index dfc80ac122..4fd56f9191 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -31,7 +31,6 @@ import net.osmand.Location; import net.osmand.ResultMatcher; import net.osmand.binary.BinaryMapIndexReader; import net.osmand.data.Amenity; -import net.osmand.data.Building; import net.osmand.data.FavouritePoint; import net.osmand.data.LatLon; import net.osmand.data.PointDescription; diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index 5d9dac60dc..7a94729743 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -538,7 +538,7 @@ public class MapControlsLayer extends OsmandMapLayer { mapZoomIn.updateVisibility(!dialogOpened); mapZoomOut.updateVisibility(!dialogOpened); - compassHud.updateVisibility(!dialogOpened && cachedRotate != 0); + compassHud.updateVisibility(!dialogOpened); layersHud.updateVisibility(!dialogOpened); quickSearch.updateVisibility(!dialogOpened); @@ -584,7 +584,6 @@ public class MapControlsLayer extends OsmandMapLayer { compassHud.setIconResId(isNight ? R.drawable.map_compass_white : R.drawable.map_compass); compassHud.iv.setContentDescription(mapActivity.getString(R.string.rotate_map_compass_opt)); } - compassHud.updateVisibility(cachedRotate != 0); } private void updateMyLocation(RoutingHelper rh, boolean dialogOpened) {