From a90fd6d2c3b2162b69b3f909257dbf34d06a3993 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Wed, 13 May 2020 09:28:56 +0300 Subject: [PATCH 1/4] Fix vector drawable migration. --- OsmAnd/res/drawable/extension_stub.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/res/drawable/extension_stub.xml b/OsmAnd/res/drawable/extension_stub.xml index 00571fbcd3..5237c87e83 100644 --- a/OsmAnd/res/drawable/extension_stub.xml +++ b/OsmAnd/res/drawable/extension_stub.xml @@ -8,7 +8,8 @@ - - + From cd175d290e894a1b26f8f37f011ba9f1454aff11 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Wed, 13 May 2020 12:26:06 +0300 Subject: [PATCH 2/4] Fix #8582 GPX files dialog, check layout --- OsmAnd/res/layout/gpx_track_item.xml | 29 ++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/OsmAnd/res/layout/gpx_track_item.xml b/OsmAnd/res/layout/gpx_track_item.xml index 0842eb7dc9..e34ec9d321 100644 --- a/OsmAnd/res/layout/gpx_track_item.xml +++ b/OsmAnd/res/layout/gpx_track_item.xml @@ -1,6 +1,7 @@ + android:layout_marginEnd="@dimen/list_content_padding" /> + app:srcCompat="@drawable/ic_action_distance_16" /> + android:layout_marginEnd="@dimen/gpx_small_text_margin" /> + app:srcCompat="@drawable/ic_action_waypoint_16" /> + android:layout_marginEnd="@dimen/gpx_small_text_margin" /> + app:srcCompat="@drawable/ic_action_time_16" /> + android:layout_marginEnd="@dimen/gpx_small_text_margin" /> @@ -146,6 +150,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="?android:textColorSecondary" + android:maxLines="1" android:textSize="@dimen/default_sub_text_size"/> @@ -167,7 +172,7 @@ android:layout_marginLeft="@dimen/favorites_icon_right_margin" android:layout_marginStart="@dimen/favorites_icon_right_margin" android:background="?attr/dashboard_button" - android:src="@drawable/ic_action_gsave_dark" + app:srcCompat="@drawable/ic_action_gsave_dark" android:visibility="gone" /> Date: Wed, 13 May 2020 12:47:29 +0300 Subject: [PATCH 3/4] Fix formatting --- OsmAnd/res/layout/gpx_track_item.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/OsmAnd/res/layout/gpx_track_item.xml b/OsmAnd/res/layout/gpx_track_item.xml index e34ec9d321..0f0f1bde06 100644 --- a/OsmAnd/res/layout/gpx_track_item.xml +++ b/OsmAnd/res/layout/gpx_track_item.xml @@ -2,17 +2,17 @@ + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?attr/selectableItemBackground" + android:orientation="vertical"> + android:visibility="gone" /> + tools:text="@string/current_track" /> + android:textSize="@dimen/default_sub_text_size" /> @@ -161,7 +161,7 @@ android:layout_height="wrap_content" android:textColor="?android:textColorPrimary" android:textSize="@dimen/default_sub_text_size" - android:visibility="gone"/> + android:visibility="gone" /> @@ -181,7 +181,7 @@ android:layout_height="@dimen/list_item_height" android:background="?attr/dashboard_button" app:srcCompat="@drawable/ic_action_rec_stop" - android:visibility="gone"/> + android:visibility="gone" /> + android:visibility="gone" /> Date: Wed, 13 May 2020 15:48:18 +0300 Subject: [PATCH 4/4] Revert srcCompat --- OsmAnd/res/drawable/extension_stub.xml | 5 ++--- OsmAnd/res/layout/gpx_track_item.xml | 19 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/OsmAnd/res/drawable/extension_stub.xml b/OsmAnd/res/drawable/extension_stub.xml index 5237c87e83..00571fbcd3 100644 --- a/OsmAnd/res/drawable/extension_stub.xml +++ b/OsmAnd/res/drawable/extension_stub.xml @@ -8,8 +8,7 @@ - + + diff --git a/OsmAnd/res/layout/gpx_track_item.xml b/OsmAnd/res/layout/gpx_track_item.xml index 0f0f1bde06..ec5e6fbc09 100644 --- a/OsmAnd/res/layout/gpx_track_item.xml +++ b/OsmAnd/res/layout/gpx_track_item.xml @@ -1,6 +1,5 @@ @@ -85,7 +84,7 @@ android:layout_height="wrap_content" android:layout_marginRight="@dimen/gpx_small_icon_margin" android:layout_marginEnd="@dimen/gpx_small_icon_margin" - app:srcCompat="@drawable/ic_action_distance_16" /> + android:src="@drawable/ic_action_distance_16" /> + android:src="@drawable/ic_action_waypoint_16" /> + android:src="@drawable/ic_action_time_16" /> + android:src="@drawable/ic_action_rec_stop" + android:visibility="gone"/> + android:src="@drawable/ic_overflow_menu_white" + android:visibility="gone"/>