Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2014-12-31 16:24:22 +01:00
commit cd21900f68
2 changed files with 4 additions and 6 deletions

View file

@ -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));

View file

@ -53,7 +53,6 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
private Button searchTransportLevel;
private TextView searchArea;
private final static int finalZoom = 13;
@ -61,7 +60,6 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
private int zoom = initialZoom;
private ProgressBar progress;
private LatLon lastKnownMapLocation;
private LatLon destinationLocation;
private LatLon selectedDestinationLocation;
@ -72,7 +70,6 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
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){