[Quick search] fix my location button

This commit is contained in:
Alexey Kulish 2016-07-28 23:04:57 +03:00
parent 4593700c60
commit f56be4e59a

View file

@ -281,7 +281,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
public void afterTextChanged(Editable s) {
String newQueryText = s.toString();
updateClearButtonAndHint();
updateClearButtonVisibility(newQueryText.length() > 0);
updateClearButtonVisibility(true);
updateTabbarVisibility(newQueryText.length() == 0);
if (!searchQuery.equalsIgnoreCase(newQueryText)) {
searchQuery = newQueryText;
@ -313,6 +313,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
new LatLon(centerLatLon.getLatitude(), centerLatLon.getLongitude()));
searchUICore.updateSettings(ss);
updateClearButtonAndHint();
updateClearButtonVisibility(true);
}
updateToolbarButton();
}
@ -322,7 +323,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
updateToolbarButton();
updateClearButtonAndHint();
updateClearButtonVisibility(searchQuery.length() > 0);
updateClearButtonVisibility(true);
addMainSearchFragment();
searchEditText.requestFocus();