2019-08-19 16:50:33 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
|
|
<PreferenceCategory android:title="@string/settings_general">
|
|
|
|
|
|
|
|
<ListPreference
|
2023-01-30 16:17:19 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:defaultValue="quality"
|
|
|
|
android:entries="@array/media_qualities"
|
|
|
|
android:entryValues="@array/media_qualities_values"
|
|
|
|
android:icon="@drawable/quality"
|
|
|
|
android:key="media_quality"
|
|
|
|
android:title="@string/settings_media_quality" />
|
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="unlimited"
|
|
|
|
android:entries="@array/bandwidth_limitation"
|
|
|
|
android:entryValues="@array/bandwidth_limitation_values"
|
2023-01-30 16:29:26 +01:00
|
|
|
android:icon="@drawable/network"
|
2023-01-30 16:17:19 +01:00
|
|
|
android:key="bandwidth_limitation"
|
|
|
|
android:title="Bandwidth limitation" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
|
|
|
<SeekBarPreference
|
|
|
|
android:defaultValue="1"
|
2019-10-23 20:21:18 +02:00
|
|
|
android:icon="@drawable/storage"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:key="media_cache_size"
|
|
|
|
android:max="5"
|
|
|
|
android:min="0"
|
|
|
|
android:title="@string/settings_media_cache_size"
|
|
|
|
app:showSeekBarValue="true"
|
|
|
|
app:updatesContinuously="true" />
|
|
|
|
|
2020-09-02 12:45:37 +02:00
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="shuffle"
|
|
|
|
android:entries="@array/play_orders"
|
|
|
|
android:entryValues="@array/play_orders_values"
|
|
|
|
android:icon="@drawable/play"
|
|
|
|
android:key="play_order"
|
|
|
|
android:title="@string/settings_play_order" />
|
2022-12-20 10:13:36 +01:00
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="0"
|
|
|
|
android:dialogTitle="@string/settings_auto_skip_backwards_on_pause_summary"
|
|
|
|
android:icon="@drawable/pause"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="auto_skip_backwards_on_pause"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:summary="@string/settings_auto_skip_backwards_on_pause_summary"
|
|
|
|
android:title="@string/settings_auto_skip_backwards_on_pause"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:useSimpleSummaryProvider="true"/>
|
2020-09-02 12:45:37 +02:00
|
|
|
|
2019-08-19 16:50:33 +02:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
<PreferenceCategory android:title="@string/settings_other">
|
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
android:defaultValue="system"
|
|
|
|
android:entries="@array/night_mode"
|
|
|
|
android:entryValues="@array/night_mode_values"
|
2019-10-23 20:21:18 +02:00
|
|
|
android:icon="@drawable/brightness"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:key="night_mode"
|
|
|
|
android:title="@string/settings_night_mode" />
|
|
|
|
|
2020-06-10 23:59:09 +02:00
|
|
|
<Preference
|
|
|
|
android:icon="@drawable/bug"
|
|
|
|
android:key="crash"
|
|
|
|
android:summary="@string/settings_crash_report_description"
|
|
|
|
android:title="@string/settings_crash_report_title" />
|
|
|
|
|
2019-08-19 16:50:33 +02:00
|
|
|
<Preference
|
2019-10-23 20:21:18 +02:00
|
|
|
android:icon="@drawable/logout"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:key="logout"
|
|
|
|
android:title="@string/settings_logout" />
|
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2020-05-29 01:23:21 +02:00
|
|
|
<PreferenceCategory android:title="@string/settings_information">
|
|
|
|
|
2020-05-29 01:42:03 +02:00
|
|
|
<Preference
|
|
|
|
android:icon="@drawable/license"
|
|
|
|
android:summary="@string/settings_information_license_description"
|
|
|
|
android:title="@string/settings_information_license_title">
|
|
|
|
|
|
|
|
<intent
|
|
|
|
android:action="android.intent.action.VIEW"
|
2021-06-30 09:04:12 +02:00
|
|
|
android:data="https://dev.funkwhale.audio/funkwhale/funkwhale-android/-/blob/develop/LICENSE" />
|
2020-05-29 01:42:03 +02:00
|
|
|
|
|
|
|
</Preference>
|
|
|
|
|
2020-05-29 01:23:21 +02:00
|
|
|
<Preference
|
|
|
|
android:icon="@drawable/repository"
|
|
|
|
android:summary="@string/settings_information_repository_description"
|
|
|
|
android:title="@string/settings_information_repository_title">
|
|
|
|
|
|
|
|
<intent
|
|
|
|
android:action="android.intent.action.VIEW"
|
2021-06-30 09:04:12 +02:00
|
|
|
android:data="https://dev.funkwhale.audio/funkwhale/funkwhale-android" />
|
2020-05-29 01:23:21 +02:00
|
|
|
|
|
|
|
</Preference>
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
android:icon="@drawable/favorite"
|
|
|
|
android:key="oss_licences"
|
|
|
|
android:title="@string/title_oss_licences" />
|
|
|
|
|
2020-05-29 01:30:05 +02:00
|
|
|
<Preference
|
|
|
|
android:key="version"
|
2020-05-29 01:42:03 +02:00
|
|
|
android:title="@string/settings_version_title" />
|
2020-05-29 01:30:05 +02:00
|
|
|
|
2020-05-29 01:23:21 +02:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
2021-08-06 08:59:11 +02:00
|
|
|
</androidx.preference.PreferenceScreen>
|