diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-03-14 21:03:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 21:03:45 +0100 |
commit | 4f7f49e1e714ce41320fff569272a1423198b2f3 (patch) | |
tree | 0adeefb8e26863cbccc204f11437684960114d86 /core/src/main/res | |
parent | 2c0b970044b3180786e165588d5d94ada0c90797 (diff) | |
download | AntennaPod-4f7f49e1e714ce41320fff569272a1423198b2f3.zip |
Move feed download to worker (#6375)
Feed downloads are now independent from episode downloads.
This makes it easier to use WorkManager for refreshing.
Also, it will make it easier to add different refresh intervals
in the future.
Diffstat (limited to 'core/src/main/res')
-rw-r--r-- | core/src/main/res/values/arrays.xml | 22 | ||||
-rw-r--r-- | core/src/main/res/values/ids.xml | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/core/src/main/res/values/arrays.xml b/core/src/main/res/values/arrays.xml index 39f62a5d7..f3c0a0a3c 100644 --- a/core/src/main/res/values/arrays.xml +++ b/core/src/main/res/values/arrays.xml @@ -25,6 +25,28 @@ <item>heavy</item> </string-array> + <string-array name="feed_refresh_interval_entries"> + <item>@string/feed_refresh_never</item> + <item>@string/feed_every_hour</item> + <item>@string/feed_every_2_hours</item> + <item>@string/feed_every_4_hours</item> + <item>@string/feed_every_8_hours</item> + <item>@string/feed_every_12_hours</item> + <item>@string/feed_every_24_hours</item> + <item>@string/feed_every_72_hours</item> + </string-array> + + <string-array name="feed_refresh_interval_values"> + <item>0</item> + <item>1</item> + <item>2</item> + <item>4</item> + <item>8</item> + <item>12</item> + <item>24</item> + <item>72</item> + </string-array> + <string-array name="globalNewEpisodesActionItems"> <item>@string/feed_new_episodes_action_add_to_inbox</item> <item>@string/feed_new_episodes_action_nothing</item> diff --git a/core/src/main/res/values/ids.xml b/core/src/main/res/values/ids.xml index 87046cc0f..90d143d38 100644 --- a/core/src/main/res/values/ids.xml +++ b/core/src/main/res/values/ids.xml @@ -19,6 +19,7 @@ <item name="notification_gpodnet_sync_error" type="id"/> <item name="notification_gpodnet_sync_autherror" type="id"/> <item name="notification_downloading" type="id"/> + <item name="notification_updating_feeds" type="id"/> <item name="notification_download_report" type="id"/> <item name="notification_auto_download_report" type="id"/> <item name="notification_playing" type="id"/> |