From 3681d3480dcdc0abc6157c21b857e1ff9f4b3c92 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 31 Dec 2014 16:24:07 +0100 Subject: [PATCH] start debugging transport search tab --- .../net/osmand/plus/activities/NavigatePointFragment.java | 2 +- .../plus/activities/search/SearchTransportFragment.java | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index 22c201dbaa..fe25eefd98 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -191,9 +191,9 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct @Override public void locationUpdate(LatLon l) { + //location = l; if (view != null) { if (l != null) { - //location = l; showCurrentFormat(l); } else { showCurrentFormat(new LatLon(0, 0)); diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java index c24f99f194..67968163e9 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchTransportFragment.java @@ -52,15 +52,13 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA public static final String SEARCH_LON = SearchActivity.SEARCH_LON; private Button searchTransportLevel; - - + private TextView searchArea; private final static int finalZoom = 13; private final static int initialZoom = 17; private int zoom = initialZoom; private ProgressBar progress; - private LatLon lastKnownMapLocation; private LatLon destinationLocation; @@ -71,7 +69,6 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA private OsmandSettings settings; private View view; private AsyncTask asyncTask; - private OsmandApplication getApplication() { return (OsmandApplication) getActivity().getApplication(); @@ -140,7 +137,8 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA double lat = intent.getDoubleExtra(SEARCH_LAT, 0); double lon = intent.getDoubleExtra(SEARCH_LON, 0); if(lat != 0 || lon != 0){ - startPoint = new LatLon(lat, lon); + //This prevents origin update on this tab when switching to it after origin was changed on previous tab + //startPoint = new LatLon(lat, lon); } } if(startPoint == null && getActivity() instanceof SearchActivity){