2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-03 07:35:08 +00:00

Add tools:keep to plugin prefs to avoid false-positive lint

This commit is contained in:
Nicolas Fella
2019-04-19 21:37:13 +02:00
parent edc04f41a6
commit 2a36194273
7 changed files with 21 additions and 7 deletions

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:keep="@xml/findmyphoneplugin_preferences">
<Preference <Preference
android:key="@string/findmyphone_preference_key_ringtone" android:key="@string/findmyphone_preference_key_ringtone"

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:keep="@xml/mousepadplugin_preferences">
<ListPreference <ListPreference
android:id="@+id/mousepad_double_tap_preference" android:id="@+id/mousepad_double_tap_preference"

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:keep="@xml/mprisplugin_preferences">
<ListPreference <ListPreference
android:id="@+id/mpris_time_preference" android:id="@+id/mpris_time_preference"

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:keep="@xml/remotekeyboardplugin_preferences">
<CheckBoxPreference <CheckBoxPreference
android:id="@+id/remotekeyboard_editing_only" android:id="@+id/remotekeyboard_editing_only"

View File

@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceScreen xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
tools:keep="@xml/sftpplugin_preferences">
<PreferenceCategory <PreferenceCategory
android:key="@string/sftp_preference_key_preference_category" android:key="@string/sftp_preference_key_preference_category"
android:title="@string/sftp_preference_detected_sdcards" android:title="@string/sftp_preference_detected_sdcards"

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
tools:keep="@xml/shareplugin_preferences">
<CheckBoxPreference <CheckBoxPreference
android:id="@+id/share_destination_customize" android:id="@+id/share_destination_customize"

View File

@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceScreen xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
tools:keep="@xml/telephonyplugin_preferences">
<EditTextPreference <EditTextPreference
android:dialogMessage="@string/telephony_pref_blocked_dialog_desc" android:dialogMessage="@string/telephony_pref_blocked_dialog_desc"