Use MediaController for media buttons

This commit is contained in:
José Rebelo
2024-08-30 11:03:20 +00:00
committed by José Rebelo
parent c7bb47d6bd
commit 95fdee3cbe
3 changed files with 166 additions and 57 deletions
+45 -16
View File
@@ -42,22 +42,6 @@
android:title="@string/pref_title_bottom_navigation_bar"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="mb_intents"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_summary_mb_intents"
android:title="@string/pref_title_mb_intents"
app:iconSpaceReserved="false" />
<ListPreference
android:defaultValue="default"
android:dependency="mb_intents"
android:key="audio_player"
android:summary="%s"
android:title="@string/pref_title_audio_player"
app:iconSpaceReserved="false" />
<Preference
android:key="pref_category_dashboard"
android:title="@string/bottom_nav_dashboard"
@@ -403,4 +387,49 @@
app:iconSpaceReserved="false" />
</PreferenceCategory>
</PreferenceScreen>
<PreferenceScreen
android:key="pref_screen_deprecated_functionalities"
android:title="@string/pref_header_deprecated_functionalities"
app:iconSpaceReserved="false">
<PreferenceCategory
android:key="pref_key_deprecated_functionalities"
android:title="@string/pref_header_deprecated_functionalities_warning"
app:iconSpaceReserved="false"
app:singleLineTitle="false" />
<PreferenceCategory
android:key="pref_header_media_control"
android:title="@string/pref_deprecated_media_control_title"
app:iconSpaceReserved="false"
app:singleLineTitle="false">
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_deprecated_media_control"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_deprecated_media_control_summary"
android:title="@string/pref_deprecated_media_control_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:dependency="pref_deprecated_media_control"
android:key="mb_intents"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_summary_mb_intents"
android:title="@string/pref_title_mb_intents"
app:iconSpaceReserved="false" />
<ListPreference
android:defaultValue="default"
android:dependency="mb_intents"
android:key="audio_player"
android:summary="%s"
android:title="@string/pref_title_audio_player"
app:iconSpaceReserved="false" />
</PreferenceCategory>
</PreferenceScreen>
</PreferenceScreen>