small refactoring
This commit is contained in:
parent
b33ce10217
commit
cf5d91f294
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue