From 42a7d5df416b2d7d12bdbbf16eadeba35e03ca60 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 5 Mar 2023 22:01:43 +0100 Subject: [PATCH] Apply linter suggestions about left/right -> begin/end --- res/layout-land/mpris_now_playing.xml | 1 - res/layout-v21/custom_device_item.xml | 7 ++++--- res/layout/about_person_list_item_entry.xml | 5 +---- res/layout/activity_find_my_phone.xml | 1 - res/layout/activity_presenter.xml | 2 -- res/layout/custom_device_item.xml | 4 ---- res/layout/fragment_about.xml | 1 - res/layout/list_item_entry.xml | 2 -- res/layout/list_item_systemvolume.xml | 2 +- res/layout/list_item_with_icon_entry.xml | 3 --- res/layout/mpris_control.xml | 1 - res/layout/preference_with_button.xml | 1 - res/layout/view_pair_error.xml | 2 -- res/layout/view_pair_request.xml | 6 +++--- res/layout/widget_remotecommandplugin.xml | 9 ++++----- .../MouseReceiverPlugin/MouseReceiverService.java | 2 +- 16 files changed, 14 insertions(+), 35 deletions(-) diff --git a/res/layout-land/mpris_now_playing.xml b/res/layout-land/mpris_now_playing.xml index b55be4df..6d14a37c 100644 --- a/res/layout-land/mpris_now_playing.xml +++ b/res/layout-land/mpris_now_playing.xml @@ -10,7 +10,6 @@ android:id="@+id/album_art" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_marginRight="25dp" android:layout_marginEnd="25dp" android:layout_weight="1" android:contentDescription="@string/mpris_coverart_description" diff --git a/res/layout-v21/custom_device_item.xml b/res/layout-v21/custom_device_item.xml index f5ef9dc1..dd7ecceb 100644 --- a/res/layout-v21/custom_device_item.xml +++ b/res/layout-v21/custom_device_item.xml @@ -1,6 +1,7 @@ + android:paddingStart="?android:attr/listPreferredItemPaddingLeft" + app:drawableEndCompat="@drawable/ic_delete" + app:drawableStartCompat="@drawable/ic_delete" /> + android:paddingEnd="?android:attr/scrollbarSize"> diff --git a/res/layout/activity_presenter.xml b/res/layout/activity_presenter.xml index 7988132b..d0df824e 100644 --- a/res/layout/activity_presenter.xml +++ b/res/layout/activity_presenter.xml @@ -41,7 +41,6 @@ android:layout_height="fill_parent" android:contentDescription="@string/mpris_rew" android:layout_weight="0.25" - android:layout_marginRight="3dp" android:layout_marginEnd="3dp" android:src="@drawable/ic_previous_black" android:theme="@style/DisableableButton" /> @@ -50,7 +49,6 @@ android:id="@+id/next_button" android:layout_width="match_parent" android:layout_height="fill_parent" - android:layout_marginLeft="3dp" android:layout_marginStart="3dp" android:layout_weight="0.25" android:contentDescription="@string/mpris_ff" diff --git a/res/layout/custom_device_item.xml b/res/layout/custom_device_item.xml index bc1dfee5..7bc07f73 100644 --- a/res/layout/custom_device_item.xml +++ b/res/layout/custom_device_item.xml @@ -12,8 +12,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:paddingEnd="?android:attr/listPreferredItemPaddingRight" - android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" - android:paddingRight="?android:attr/listPreferredItemPaddingRight" android:paddingStart="?android:attr/listPreferredItemPaddingLeft"/> diff --git a/res/layout/list_item_entry.xml b/res/layout/list_item_entry.xml index 9c44230c..7a5c8474 100644 --- a/res/layout/list_item_entry.xml +++ b/res/layout/list_item_entry.xml @@ -9,8 +9,6 @@ android:minHeight="?android:attr/listPreferredItemHeight" android:orientation="vertical" android:paddingEnd="?android:attr/scrollbarSize" - android:paddingLeft="12dip" - android:paddingRight="?android:attr/scrollbarSize" android:paddingStart="12dip" android:id="@+id/list_item_entry"> diff --git a/res/layout/list_item_systemvolume.xml b/res/layout/list_item_systemvolume.xml index 6c3a295e..a77ecc8c 100644 --- a/res/layout/list_item_systemvolume.xml +++ b/res/layout/list_item_systemvolume.xml @@ -24,7 +24,7 @@ android:layout_gravity="start" android:ellipsize="end" android:maxLines="1" - android:paddingLeft="14dp" + android:paddingStart="14dp" android:textAppearance="@style/TextAppearance.AppCompat.Medium" tools:text="Device name" /> diff --git a/res/layout/list_item_with_icon_entry.xml b/res/layout/list_item_with_icon_entry.xml index 5eaef42c..bdf91ea6 100644 --- a/res/layout/list_item_with_icon_entry.xml +++ b/res/layout/list_item_with_icon_entry.xml @@ -19,7 +19,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical" - android:layout_marginLeft="12dp" android:layout_marginStart="12dp" android:contentDescription="@string/device_icon_description" android:src="@drawable/ic_device_laptop_32dp" @@ -35,7 +34,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="8dip" android:layout_marginStart="8dip" android:ellipsize="marquee" android:fadingEdge="horizontal" @@ -49,7 +47,6 @@ android:id="@+id/list_item_entry_summary" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dip" android:layout_marginStart="8dip" android:singleLine="true" android:text="" diff --git a/res/layout/mpris_control.xml b/res/layout/mpris_control.xml index 36d148ca..a92c20de 100644 --- a/res/layout/mpris_control.xml +++ b/res/layout/mpris_control.xml @@ -189,7 +189,6 @@ android:layout_width="30dip" android:layout_height="30dip" android:layout_marginEnd="10dip" - android:layout_marginRight="10dip" android:layout_weight="0" android:contentDescription="@string/mpris_volume" android:maxWidth="30dip" diff --git a/res/layout/preference_with_button.xml b/res/layout/preference_with_button.xml index 3e4f4e14..3d6a1de7 100644 --- a/res/layout/preference_with_button.xml +++ b/res/layout/preference_with_button.xml @@ -46,7 +46,6 @@ android:id="@android:id/summary" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignLeft="@android:id/title" android:layout_alignStart="@android:id/title" android:layout_below="@android:id/title" android:maxLines="3" diff --git a/res/layout/view_pair_error.xml b/res/layout/view_pair_error.xml index ae8f603f..cd764a39 100644 --- a/res/layout/view_pair_error.xml +++ b/res/layout/view_pair_error.xml @@ -18,8 +18,6 @@ android:layout_height="wrap_content" android:importantForAccessibility="no" android:paddingEnd="8dip" - android:paddingLeft="0dip" - android:paddingRight="8dip" android:paddingStart="0dip" android:src="@drawable/ic_error_outline_48dp" app:tint="?attr/colorHighContrast" diff --git a/res/layout/view_pair_request.xml b/res/layout/view_pair_request.xml index 46b1bf31..a2289c73 100644 --- a/res/layout/view_pair_request.xml +++ b/res/layout/view_pair_request.xml @@ -1,6 +1,7 @@ + android:textAppearance="?android:attr/textAppearanceMedium" + app:drawableStartCompat="@drawable/ic_key" />