2022-07-28 18:01:35 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-04-27 13:09:45 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
2022-07-28 18:01:35 +05:30
|
|
|
|
|
|
|
<PreferenceCategory app:title="@string/notifications">
|
|
|
|
|
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:icon="@drawable/ic_notification"
|
2022-08-01 12:47:36 +05:30
|
|
|
android:summary="@string/notify_new_streams_summary"
|
2022-07-28 18:01:35 +05:30
|
|
|
app:defaultValue="true"
|
|
|
|
app:key="notification_toggle"
|
2023-04-27 13:09:45 +05:30
|
|
|
app:title="@string/notify_new_streams"/>
|
2022-07-28 18:01:35 +05:30
|
|
|
|
2023-04-13 17:10:51 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:icon="@drawable/ic_image"
|
|
|
|
app:defaultValue="false"
|
|
|
|
app:key="show_stream_thumbnails"
|
2023-04-27 13:09:45 +05:30
|
|
|
android:dependency="notification_toggle"
|
2023-04-13 17:10:51 +05:30
|
|
|
app:title="@string/show_stream_thumbnails"
|
2023-04-27 13:09:45 +05:30
|
|
|
app:summary="@string/show_stream_thumbnails_summary"/>
|
2023-04-13 17:10:51 +05:30
|
|
|
|
2022-07-28 18:01:35 +05:30
|
|
|
<ListPreference
|
|
|
|
android:icon="@drawable/ic_time"
|
|
|
|
app:defaultValue="60"
|
|
|
|
app:entries="@array/checkingFrequency"
|
|
|
|
app:entryValues="@array/checkingFrequencyValues"
|
|
|
|
app:key="checking_frequency"
|
2023-04-27 13:09:45 +05:30
|
|
|
android:dependency="notification_toggle"
|
2022-07-28 18:01:35 +05:30
|
|
|
app:title="@string/checking_frequency"
|
2023-04-27 13:09:45 +05:30
|
|
|
app:useSimpleSummaryProvider="true"/>
|
2022-07-28 18:01:35 +05:30
|
|
|
|
2022-07-31 18:06:39 +05:30
|
|
|
<ListPreference
|
|
|
|
android:icon="@drawable/ic_signal"
|
|
|
|
app:defaultValue="all"
|
2023-04-27 13:09:45 +05:30
|
|
|
android:dependency="notification_toggle"
|
2022-07-31 18:06:39 +05:30
|
|
|
app:entries="@array/requiredNetwork"
|
|
|
|
app:entryValues="@array/requiredNetworkValues"
|
|
|
|
app:key="required_network"
|
|
|
|
app:title="@string/required_network"
|
2023-04-27 13:09:45 +05:30
|
|
|
app:useSimpleSummaryProvider="true"/>
|
2022-07-31 18:06:39 +05:30
|
|
|
|
2022-07-28 18:01:35 +05:30
|
|
|
</PreferenceCategory>
|
|
|
|
|
2022-11-09 22:31:59 +05:30
|
|
|
<PreferenceCategory app:title="@string/time">
|
|
|
|
|
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:summary="@string/notification_time_summary"
|
|
|
|
app:key="notification_time"
|
2023-04-27 13:09:45 +05:30
|
|
|
app:title="@string/notification_time"/>
|
2022-11-09 22:31:59 +05:30
|
|
|
|
|
|
|
<com.github.libretube.ui.views.TimePickerPreference
|
|
|
|
app:key="notification_start_time"
|
2023-04-27 13:09:45 +05:30
|
|
|
android:dependency="notification_time"
|
|
|
|
app:title="@string/start_time"/>
|
2022-11-09 22:31:59 +05:30
|
|
|
|
|
|
|
<com.github.libretube.ui.views.TimePickerPreference
|
|
|
|
app:key="notification_end_time"
|
2023-04-27 13:09:45 +05:30
|
|
|
android:dependency="notification_time"
|
|
|
|
app:title="@string/end_time"/>
|
2022-11-09 22:31:59 +05:30
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2022-07-28 18:01:35 +05:30
|
|
|
</PreferenceScreen>
|