From cf5d91f294842fe63286bb933d2df735882ced3e Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Mon, 1 Jun 2020 16:17:04 +0300 Subject: [PATCH] small refactoring --- .../net/osmand/plus/search/QuickSearchCustomPoiFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchCustomPoiFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchCustomPoiFragment.java index 0181aad908..2d1a83a2d4 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchCustomPoiFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchCustomPoiFragment.java @@ -40,6 +40,7 @@ import net.osmand.data.Amenity; import net.osmand.osm.PoiCategory; import net.osmand.osm.PoiType; import net.osmand.plus.OsmandApplication; +import net.osmand.plus.helpers.AndroidUiHelper; import net.osmand.plus.settings.backend.OsmandSettings; import net.osmand.plus.R; import net.osmand.plus.UiUtilities; @@ -298,8 +299,8 @@ public class QuickSearchCustomPoiFragment extends DialogFragment implements OnFi } private void updateCloseSearchIcon(boolean searching) { - searchProgressBar.setVisibility(searching ? View.VISIBLE : View.GONE); - searchCloseIcon.setVisibility(searching ? View.GONE : View.VISIBLE); + AndroidUiHelper.updateVisibility(searchProgressBar, searching); + AndroidUiHelper.updateVisibility(searchCloseIcon, !searching); } private void searchSubCategory(String text) {