Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-07-16 20:08:41 +02:00
commit cf94422810

View file

@ -265,7 +265,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
@Override
public int getSearchPriority(SearchPhrase p) {
if(!p.isNoSelectedType()) {
if(!p.isNoSelectedType() || p.getLastWord().isEmpty()) {
return -1;
}
return SEARCH_FAVORITE_API_PRIORITY;