Adjust tabs for easier code debugging - no functional change

This commit is contained in:
sonora 2015-01-04 15:11:54 +01:00
parent 3f5d1d7590
commit 6d1585c5a7

View file

@ -371,20 +371,20 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio
} }
public String getRoutePointDescription(double lat, double lon) { public String getRoutePointDescription(double lat, double lon) {
return mapActivity.getString(R.string.route_descr_lat_lon, lat, lon); return mapActivity.getString(R.string.route_descr_lat_lon, lat, lon);
} }
public String getRoutePointDescription(LatLon l, String d) { public String getRoutePointDescription(LatLon l, String d) {
if(d != null && d.length() > 0) { if(d != null && d.length() > 0) {
return d.replace(':', ' '); return d.replace(':', ' ');
} }
if(l != null) { if(l != null) {
return mapActivity.getString(R.string.route_descr_lat_lon, l.getLatitude(), l.getLongitude()); return mapActivity.getString(R.string.route_descr_lat_lon, l.getLatitude(), l.getLongitude());
} }
return ""; return "";
} }
private Spinner setupFromSpinner( View view) { private Spinner setupFromSpinner( View view) {
ArrayList<String> fromActions = new ArrayList<String>(); ArrayList<String> fromActions = new ArrayList<String>();
fromActions.add(mapActivity.getString(R.string.route_descr_current_location)); fromActions.add(mapActivity.getString(R.string.route_descr_current_location));
fromActions.add(mapActivity.getString(R.string.route_descr_favorite)); fromActions.add(mapActivity.getString(R.string.route_descr_favorite));
@ -414,8 +414,8 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio
return fromSpinner; return fromSpinner;
} }
private Spinner setupToSpinner(View view) { private Spinner setupToSpinner(View view) {
final Spinner toSpinner = ((Spinner) view.findViewById(R.id.ToSpinner)); final Spinner toSpinner = ((Spinner) view.findViewById(R.id.ToSpinner));
final TargetPointsHelper targets = getTargets(); final TargetPointsHelper targets = getTargets();
ArrayList<String> toActions = new ArrayList<String>(); ArrayList<String> toActions = new ArrayList<String>();
if (targets.getPointToNavigate() != null) { if (targets.getPointToNavigate() != null) {