Corrected secret words for pedestrian routing.

This commit is contained in:
Dmitry Yunitsky 2015-06-16 20:30:31 +03:00 committed by Alex Zolotarev
parent cc9b83d69c
commit a58ced0ad3

View file

@ -125,13 +125,16 @@ public class SearchFragment extends BaseMwmListFragment implements View.OnClickL
public void afterTextChanged(Editable s)
{
// TODO: This code only for demonstration purposes and will be removed soon
if (tryChangeMapStyle(s.toString()) ||
tryChangeRouter(s.toString()))
if (tryChangeMapStyle(s.toString()))
return;
if (runSearch() == STATUS_QUERY_EMPTY)
showCategories();
// TODO: This code only for demonstration purposes and will be removed soon
if (tryChangeRouter(s.toString()))
return;
if (s.length() == 0)
{
UiUtils.invisible(mBtnClearQuery);
@ -227,9 +230,9 @@ public class SearchFragment extends BaseMwmListFragment implements View.OnClickL
private boolean tryChangeRouter(String query)
{
final boolean pedestrian = query.equals("?pedestrian");
final boolean wehicle = query.equals("?vehicle");
final boolean vehicle = query.equals("?vehicle");
if (!pedestrian && !wehicle)
if (!pedestrian && !vehicle)
return false;
mEtSearchQuery.setText(null);
@ -242,7 +245,6 @@ public class SearchFragment extends BaseMwmListFragment implements View.OnClickL
}
// FIXME: This code only for demonstration purposes and will be removed soon
@Override
public void onResume()
{