Fix issue
This commit is contained in:
parent
a233194807
commit
39bae9a466
3 changed files with 13 additions and 1 deletions
9
OsmAnd/res/layout/divider.xml
Normal file
9
OsmAnd/res/layout/divider.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/dashboard_divider"
|
||||
android:focusable="false"
|
||||
android:visibility="gone" />
|
|
@ -71,6 +71,7 @@ public class DashWaypointsFragment extends DashLocationFragment {
|
|||
}
|
||||
((TextView) mainView.findViewById(R.id.fav_text)).setText(getString(R.string.waypoints));
|
||||
((Button) mainView.findViewById(R.id.show_all)).setText(getString(R.string.shared_string_show_all));
|
||||
((Button) mainView.findViewById(R.id.show_all)).setVisibility(View.VISIBLE);
|
||||
((Button) mainView.findViewById(R.id.show_all)).setOnClickListener(new View.OnClickListener() {
|
||||
|
||||
@Override
|
||||
|
@ -83,6 +84,8 @@ public class DashWaypointsFragment extends DashLocationFragment {
|
|||
List<DashLocationView> distances = new ArrayList<DashLocationFragment.DashLocationView>();
|
||||
for(int i = 0; i < 3 && i < allPoints.size(); i++) {
|
||||
LocationPointWrapper ps = allPoints.get(i);
|
||||
View dv = getActivity().getLayoutInflater().inflate(R.layout.divider, null);
|
||||
favorites.addView(dv);
|
||||
View v = WaypointDialogHelper.updateWaypointItemView(false, null, getMyApplication(), getActivity(), null, ps, null);
|
||||
favorites.addView(v);
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ public class MapRoutePreferencesControl {
|
|||
}
|
||||
GeneralRouter rm = SettingsNavigationActivity.getRouter(mapActivity.getMyApplication()
|
||||
.getDefaultRoutingConfig(), am);
|
||||
if (rm == null || (rparams != null && !rparams.isCalculateOsmAndRoute())) {
|
||||
if (rm == null || (rparams != null && !rparams.isCalculateOsmAndRoute()) && !rparams.getFile().hasRtePt()) {
|
||||
return list;
|
||||
}
|
||||
for (RoutingParameter r : rm.getParameters().values()) {
|
||||
|
|
Loading…
Reference in a new issue