mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
70 lines
2.6 KiB
XML
70 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<PreferenceCategory app:title="@string/notifications">
|
|
|
|
<SwitchPreferenceCompat
|
|
android:icon="@drawable/ic_notification"
|
|
android:summary="@string/notify_new_streams_summary"
|
|
app:defaultValue="true"
|
|
app:key="notification_toggle"
|
|
app:title="@string/notify_new_streams" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:dependency="notification_toggle"
|
|
android:icon="@drawable/ic_image"
|
|
app:defaultValue="false"
|
|
app:key="show_stream_thumbnails"
|
|
app:summary="@string/show_stream_thumbnails_summary"
|
|
app:title="@string/show_stream_thumbnails" />
|
|
|
|
<SwitchPreferenceCompat
|
|
android:dependency="notification_toggle"
|
|
android:icon="@drawable/ic_video"
|
|
app:defaultValue="false"
|
|
app:key="shorts_notifications"
|
|
app:title="@string/shorts_notifications" />
|
|
|
|
<ListPreference
|
|
android:dependency="notification_toggle"
|
|
android:icon="@drawable/ic_time"
|
|
app:defaultValue="60"
|
|
app:entries="@array/checkingFrequency"
|
|
app:entryValues="@array/checkingFrequencyValues"
|
|
app:key="checking_frequency"
|
|
app:title="@string/checking_frequency"
|
|
app:useSimpleSummaryProvider="true" />
|
|
|
|
<ListPreference
|
|
android:dependency="notification_toggle"
|
|
android:icon="@drawable/ic_signal"
|
|
app:defaultValue="all"
|
|
app:entries="@array/requiredNetwork"
|
|
app:entryValues="@array/requiredNetworkValues"
|
|
app:key="required_network"
|
|
app:title="@string/required_network"
|
|
app:useSimpleSummaryProvider="true" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory app:title="@string/time">
|
|
|
|
<SwitchPreferenceCompat
|
|
android:summary="@string/notification_time_summary"
|
|
app:key="notification_time"
|
|
app:title="@string/notification_time" />
|
|
|
|
<com.github.libretube.ui.views.TimePickerPreference
|
|
android:dependency="notification_time"
|
|
app:key="notification_start_time"
|
|
app:title="@string/start_time" />
|
|
|
|
<com.github.libretube.ui.views.TimePickerPreference
|
|
android:dependency="notification_time"
|
|
app:key="notification_end_time"
|
|
app:title="@string/end_time" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen> |