small refactoring

This commit is contained in:
veliymolfar 2020-06-01 16:17:04 +03:00
parent b33ce10217
commit cf5d91f294

View file

@ -40,6 +40,7 @@ import net.osmand.data.Amenity;
import net.osmand.osm.PoiCategory; import net.osmand.osm.PoiCategory;
import net.osmand.osm.PoiType; import net.osmand.osm.PoiType;
import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandApplication;
import net.osmand.plus.helpers.AndroidUiHelper;
import net.osmand.plus.settings.backend.OsmandSettings; import net.osmand.plus.settings.backend.OsmandSettings;
import net.osmand.plus.R; import net.osmand.plus.R;
import net.osmand.plus.UiUtilities; import net.osmand.plus.UiUtilities;
@ -298,8 +299,8 @@ public class QuickSearchCustomPoiFragment extends DialogFragment implements OnFi
} }
private void updateCloseSearchIcon(boolean searching) { private void updateCloseSearchIcon(boolean searching) {
searchProgressBar.setVisibility(searching ? View.VISIBLE : View.GONE); AndroidUiHelper.updateVisibility(searchProgressBar, searching);
searchCloseIcon.setVisibility(searching ? View.GONE : View.VISIBLE); AndroidUiHelper.updateVisibility(searchCloseIcon, !searching);
} }
private void searchSubCategory(String text) { private void searchSubCategory(String text) {