UI: Add sorting to Add to Track dialog / Follow

Remove the sort button when track is selected
Remove shadow below the title bar
Shadow above buttons
This commit is contained in:
androiddevkkotlin 2020-11-25 19:14:27 +02:00
parent 4b99c282dd
commit 92753fcdbc
2 changed files with 2 additions and 1 deletions

View file

@ -75,7 +75,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/route_info_bg"
android:foreground="@drawable/bg_contextmenu_shadow"
android:foregroundGravity="top|fill_horizontal">
<androidx.core.widget.NestedScrollView

View file

@ -505,6 +505,8 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
private void selectTrackToFollow(GPXFile gpxFile) {
MapActivity mapActivity = getMapActivity();
final ImageButton sortButton = getView().findViewById(R.id.sort_button);
sortButton.setVisibility(View.GONE);
if (mapActivity != null) {
this.gpxFile = gpxFile;
List<WptPt> points = gpxFile.getRoutePoints();