diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-29 11:23:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 11:23:33 +0100 |
commit | 5ede21d676af8d879ec8f5d695255ccbf4398e76 (patch) | |
tree | e4f23895d32ff6946b57887880b084a6759bc5dc | |
parent | 13a985ca1e6fae65682c97ee523dec96b2fdeedf (diff) | |
download | AntennaPod-5ede21d676af8d879ec8f5d695255ccbf4398e76.zip |
Remove dependency of :net:discovery and :ui:echo on :core (#7036)
Moves the common icon files to :ui:common
-rw-r--r-- | app/src/main/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/nav_listitem.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/shortcuts.xml | 8 | ||||
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/ClientConfigurator.java | 2 | ||||
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java | 3 | ||||
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/sync/SynchronizationCredentials.java | 67 | ||||
-rw-r--r-- | core/src/main/res/drawable-anydpi-v26/ic_shortcut_feed.xml (renamed from core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable-anydpi-v26/ic_shortcut_playlist.xml (renamed from core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable-anydpi-v26/ic_shortcut_refresh.xml (renamed from core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable-anydpi-v26/ic_shortcut_subscriptions.xml (renamed from core/src/main/res/drawable-anydpi-v26/ic_subscriptions_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable/bg_drawer_item.xml (renamed from core/src/main/res/drawable/drawer_item_background.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable/ic_shortcut_feed.xml (renamed from core/src/main/res/drawable/ic_feed_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable/ic_shortcut_playlist.xml (renamed from core/src/main/res/drawable/ic_playlist_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable/ic_shortcut_refresh.xml (renamed from core/src/main/res/drawable/ic_refresh_shortcut.xml) | 0 | ||||
-rw-r--r-- | core/src/main/res/drawable/ic_shortcut_subscriptions.xml (renamed from core/src/main/res/drawable/ic_subscriptions_shortcut.xml) | 0 | ||||
-rw-r--r-- | net/discovery/build.gradle | 3 | ||||
-rw-r--r-- | net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FeedUrlNotFoundException.java (renamed from core/src/main/java/de/danoeh/antennapod/core/feed/FeedUrlNotFoundException.java) | 2 | ||||
-rw-r--r-- | net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java | 4 | ||||
-rw-r--r-- | net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java | 1 | ||||
-rw-r--r-- | storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/SynchronizationCredentials.java | 60 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_add.xml (renamed from core/src/main/res/drawable/ic_add.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_appearance.xml (renamed from core/src/main/res/drawable/ic_appearance.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_arrow_down.xml (renamed from core/src/main/res/drawable/ic_arrow_down.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_arrow_right_white.xml (renamed from core/src/main/res/drawable/ic_arrow_right_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_bug.xml (renamed from core/src/main/res/drawable/ic_bug.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_cancel.xml (renamed from core/src/main/res/drawable/ic_cancel.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_chapter_next.xml (renamed from core/src/main/res/drawable/ic_chapter_next.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_chapter_prev.xml (renamed from core/src/main/res/drawable/ic_chapter_prev.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_chart_box.xml (renamed from core/src/main/res/drawable/ic_chart_box.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_chat.xml (renamed from core/src/main/res/drawable/ic_chat.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_check.xml (renamed from core/src/main/res/drawable/ic_check.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_checkbox_background.xml (renamed from core/src/main/res/drawable/ic_checkbox_background.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_close_white.xml (renamed from core/src/main/res/drawable/ic_close_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_cloud.xml (renamed from core/src/main/res/drawable/ic_cloud.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_contribute.xml (renamed from core/src/main/res/drawable/ic_contribute.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_curved_arrow.xml (renamed from core/src/main/res/drawable/ic_curved_arrow.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_delete.xml (renamed from core/src/main/res/drawable/ic_delete.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_delete_auto.xml (renamed from core/src/main/res/drawable/ic_delete_auto.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_disc_alert.xml (renamed from core/src/main/res/drawable/ic_disc_alert.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_download.xml (renamed from core/src/main/res/drawable/ic_download.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_download_black.xml (renamed from core/src/main/res/drawable/ic_download_black.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_error.xml (renamed from core/src/main/res/drawable/ic_error.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_eye.xml (renamed from core/src/main/res/drawable/ic_eye.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_fab_edit.xml (renamed from core/src/main/res/drawable/ic_fab_edit.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_fast_forward.xml (renamed from core/src/main/res/drawable/ic_fast_forward.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_fast_forward_video_white.xml (renamed from core/src/main/res/drawable/ic_fast_forward_video_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_fast_rewind.xml (renamed from core/src/main/res/drawable/ic_fast_rewind.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_fast_rewind_video_white.xml (renamed from core/src/main/res/drawable/ic_fast_rewind_video_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_feed.xml (renamed from core/src/main/res/drawable/ic_feed.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_feed_black.xml (renamed from core/src/main/res/drawable/ic_feed_black.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_filter.xml (renamed from core/src/main/res/drawable/ic_filter.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_filter_white.xml (renamed from core/src/main/res/drawable/ic_filter_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_folder.xml (renamed from core/src/main/res/drawable/ic_folder.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_history.xml (renamed from core/src/main/res/drawable/ic_history.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_history_remove.xml (renamed from core/src/main/res/drawable/ic_history_remove.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_home.xml (renamed from core/src/main/res/drawable/ic_home.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_inbox.xml (renamed from core/src/main/res/drawable/ic_inbox.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_info.xml (renamed from core/src/main/res/drawable/ic_info.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_info_white.xml (renamed from core/src/main/res/drawable/ic_info_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_key.xml (renamed from core/src/main/res/drawable/ic_key.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_load_more.xml (renamed from core/src/main/res/drawable/ic_load_more.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_mark_played.xml (renamed from core/src/main/res/drawable/ic_mark_played.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_mark_unplayed.xml (renamed from core/src/main/res/drawable/ic_mark_unplayed.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_notifications.xml (renamed from core/src/main/res/drawable/ic_notifications.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_paperclip.xml (renamed from core/src/main/res/drawable/ic_paperclip.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_pause.xml (renamed from core/src/main/res/drawable/ic_pause.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_pause_video_white.xml (renamed from core/src/main/res/drawable/ic_pause_video_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_play_24dp.xml (renamed from core/src/main/res/drawable/ic_play_24dp.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_play_48dp.xml (renamed from core/src/main/res/drawable/ic_play_48dp.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_play_video_white.xml (renamed from core/src/main/res/drawable/ic_play_video_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_playback_speed.xml (renamed from core/src/main/res/drawable/ic_playback_speed.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_playlist_play.xml (renamed from core/src/main/res/drawable/ic_playlist_play.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_playlist_play_black.xml (renamed from core/src/main/res/drawable/ic_playlist_play_black.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_playlist_remove.xml (renamed from core/src/main/res/drawable/ic_playlist_remove.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_questionmark.xml (renamed from core/src/main/res/drawable/ic_questionmark.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_refresh.xml (renamed from core/src/main/res/drawable/ic_refresh.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_refresh_black.xml (renamed from core/src/main/res/drawable/ic_refresh_black.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_replay.xml (renamed from core/src/main/res/drawable/ic_replay.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_rounded_corner_left.xml (renamed from core/src/main/res/drawable/ic_rounded_corner_left.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_rounded_corner_right.xml (renamed from core/src/main/res/drawable/ic_rounded_corner_right.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_search.xml (renamed from core/src/main/res/drawable/ic_search.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_select_all.xml (renamed from core/src/main/res/drawable/ic_select_all.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_select_none.xml (renamed from core/src/main/res/drawable/ic_select_none.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_settings.xml (renamed from core/src/main/res/drawable/ic_settings.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_settings_white.xml (renamed from core/src/main/res/drawable/ic_settings_white.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_share.xml (renamed from core/src/main/res/drawable/ic_share.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_shortcut_background.xml (renamed from core/src/main/res/drawable/ic_shortcut_background.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_shuffle.xml (renamed from core/src/main/res/drawable/ic_shuffle.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_skip_24dp.xml (renamed from core/src/main/res/drawable/ic_skip_24dp.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_skip_48dp.xml (renamed from core/src/main/res/drawable/ic_skip_48dp.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_sleep.xml (renamed from core/src/main/res/drawable/ic_sleep.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_sleep_off.xml (renamed from core/src/main/res/drawable/ic_sleep_off.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_star.xml (renamed from core/src/main/res/drawable/ic_star.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_star_border.xml (renamed from core/src/main/res/drawable/ic_star_border.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_storage.xml (renamed from core/src/main/res/drawable/ic_storage.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_stream.xml (renamed from core/src/main/res/drawable/ic_stream.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_subscriptions.xml (renamed from core/src/main/res/drawable/ic_subscriptions.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_subscriptions_black.xml (renamed from core/src/main/res/drawable/ic_subscriptions_black.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_tag.xml (renamed from core/src/main/res/drawable/ic_tag.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_videocam.xml (renamed from core/src/main/res/drawable/ic_videocam.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_volume_adaption.xml (renamed from core/src/main/res/drawable/ic_volume_adaption.xml) | 0 | ||||
-rw-r--r-- | ui/common/src/main/res/drawable/ic_web.xml (renamed from core/src/main/res/drawable/ic_web.xml) | 0 | ||||
-rw-r--r-- | ui/echo/build.gradle | 1 | ||||
-rw-r--r-- | ui/notifications/src/main/res/drawable-hdpi/ic_notification.png (renamed from core/src/main/res/drawable-hdpi/ic_notification.png) | bin | 1323 -> 1323 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-hdpi/ic_notification_new.png (renamed from core/src/main/res/drawable-hdpi/ic_notification_new.png) | bin | 1310 -> 1310 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-mdpi/ic_notification.png (renamed from core/src/main/res/drawable-mdpi/ic_notification.png) | bin | 833 -> 833 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-mdpi/ic_notification_new.png (renamed from core/src/main/res/drawable-mdpi/ic_notification_new.png) | bin | 827 -> 827 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-xhdpi/ic_notification.png (renamed from core/src/main/res/drawable-xhdpi/ic_notification.png) | bin | 1791 -> 1791 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-xhdpi/ic_notification_new.png (renamed from core/src/main/res/drawable-xhdpi/ic_notification_new.png) | bin | 1782 -> 1782 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-xxhdpi/ic_notification.png (renamed from core/src/main/res/drawable-xxhdpi/ic_notification.png) | bin | 2461 -> 2461 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-xxhdpi/ic_notification_new.png (renamed from core/src/main/res/drawable-xxhdpi/ic_notification_new.png) | bin | 2491 -> 2491 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-xxxhdpi/ic_notification.png (renamed from core/src/main/res/drawable-xxxhdpi/ic_notification.png) | bin | 3004 -> 3004 bytes | |||
-rw-r--r-- | ui/notifications/src/main/res/drawable-xxxhdpi/ic_notification_new.png (renamed from core/src/main/res/drawable-xxxhdpi/ic_notification_new.png) | bin | 3038 -> 3038 bytes | |||
-rw-r--r-- | ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java | 10 | ||||
-rw-r--r-- | ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/NextcloudAuthenticationFragment.java | 6 | ||||
-rw-r--r-- | ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/SynchronizationPreferencesFragment.java | 6 |
118 files changed, 91 insertions, 90 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d7038444f..8bbe4cdb9 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -309,7 +309,7 @@ <activity android:name=".activity.SelectSubscriptionActivity" android:label="@string/shortcut_subscription_label" - android:icon="@drawable/ic_subscriptions_shortcut" + android:icon="@drawable/ic_shortcut_subscriptions" android:theme="@style/Theme.AntennaPod.Dark.Translucent" android:exported="true"> <intent-filter> diff --git a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java index de76c4066..72c200231 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java @@ -32,7 +32,7 @@ import de.danoeh.antennapod.R; import de.danoeh.antennapod.adapter.FeedItemlistDescriptionAdapter; import de.danoeh.antennapod.ui.common.ThemeSwitcher; import de.danoeh.antennapod.core.service.download.DownloadRequestCreator; -import de.danoeh.antennapod.core.feed.FeedUrlNotFoundException; +import de.danoeh.antennapod.net.discovery.FeedUrlNotFoundException; import de.danoeh.antennapod.core.storage.FeedDatabaseWriter; import de.danoeh.antennapod.core.service.playback.PlaybackServiceInterface; import de.danoeh.antennapod.core.util.DownloadErrorLabel; diff --git a/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java index eeae20899..45a72117d 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java @@ -100,7 +100,7 @@ public class SelectSubscriptionActivity extends AppCompatActivity { if (bitmap != null) { icon = IconCompat.createWithAdaptiveBitmap(bitmap); } else { - icon = IconCompat.createWithResource(this, R.drawable.ic_subscriptions_shortcut); + icon = IconCompat.createWithResource(this, R.drawable.ic_shortcut_subscriptions); } ShortcutInfoCompat shortcut = new ShortcutInfoCompat.Builder(this, id) diff --git a/app/src/main/res/layout/nav_listitem.xml b/app/src/main/res/layout/nav_listitem.xml index 47d6e6c00..eb8fa3c1d 100644 --- a/app/src/main/res/layout/nav_listitem.xml +++ b/app/src/main/res/layout/nav_listitem.xml @@ -7,7 +7,7 @@ android:layout_height="@dimen/listitem_iconwithtext_height" android:orientation="vertical" android:layout_marginHorizontal="8dp" - android:background="@drawable/drawer_item_background"> + android:background="@drawable/bg_drawer_item"> <ImageView android:id="@+id/imgvCover" diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml index 8f6de7cd0..8a4d6cb7a 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/src/main/res/xml/shortcuts.xml @@ -2,7 +2,7 @@ <shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut android:enabled="true" - android:icon="@drawable/ic_playlist_shortcut" + android:icon="@drawable/ic_shortcut_playlist" android:shortcutId="queue" android:shortcutShortLabel="@string/queue_label"> <intent @@ -17,7 +17,7 @@ <shortcut android:enabled="true" - android:icon="@drawable/ic_feed_shortcut" + android:icon="@drawable/ic_shortcut_feed" android:shortcutId="episodes" android:shortcutShortLabel="@string/episodes_label"> <intent @@ -32,7 +32,7 @@ <shortcut android:enabled="true" - android:icon="@drawable/ic_subscriptions_shortcut" + android:icon="@drawable/ic_shortcut_subscriptions" android:shortcutId="subscriptions" android:shortcutShortLabel="@string/subscriptions_label"> <intent @@ -47,7 +47,7 @@ <shortcut android:enabled="true" - android:icon="@drawable/ic_refresh_shortcut" + android:icon="@drawable/ic_shortcut_refresh" android:shortcutId="refresh" android:shortcutShortLabel="@string/refresh_label"> <intent diff --git a/core/src/main/java/de/danoeh/antennapod/core/ClientConfigurator.java b/core/src/main/java/de/danoeh/antennapod/core/ClientConfigurator.java index 64c9827d5..b50a1b2ab 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/ClientConfigurator.java +++ b/core/src/main/java/de/danoeh/antennapod/core/ClientConfigurator.java @@ -3,6 +3,7 @@ package de.danoeh.antennapod.core; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; +import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import de.danoeh.antennapod.storage.preferences.PlaybackPreferences; import de.danoeh.antennapod.storage.preferences.SleepTimerPreferences; import de.danoeh.antennapod.storage.preferences.UsageStatistics; @@ -36,6 +37,7 @@ public class ClientConfigurator { } PodDBAdapter.init(context); UserPreferences.init(context); + SynchronizationCredentials.init(context); UsageStatistics.init(context); PlaybackPreferences.init(context); SslProviderInstaller.install(context); diff --git a/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java b/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java index 28ada01f8..d9399420c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java @@ -28,6 +28,7 @@ import de.danoeh.antennapod.event.FeedUpdateRunningEvent; import de.danoeh.antennapod.event.MessageEvent; import de.danoeh.antennapod.model.feed.FeedItemFilter; import de.danoeh.antennapod.model.feed.SortOrder; +import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import de.danoeh.antennapod.ui.notifications.NotificationUtils; import org.apache.commons.lang3.StringUtils; import org.greenrobot.eventbus.EventBus; @@ -371,7 +372,7 @@ public class SyncService extends Worker { switch (selectedService) { case GPODDER_NET: return new GpodnetService(AntennapodHttpClient.getHttpClient(), - SynchronizationCredentials.getHosturl(), SynchronizationCredentials.getDeviceID(), + SynchronizationCredentials.getHosturl(), SynchronizationCredentials.getDeviceId(), SynchronizationCredentials.getUsername(), SynchronizationCredentials.getPassword()); case NEXTCLOUD_GPODDER: return new NextcloudSyncService(AntennapodHttpClient.getHttpClient(), diff --git a/core/src/main/java/de/danoeh/antennapod/core/sync/SynchronizationCredentials.java b/core/src/main/java/de/danoeh/antennapod/core/sync/SynchronizationCredentials.java deleted file mode 100644 index f5571fbb6..000000000 --- a/core/src/main/java/de/danoeh/antennapod/core/sync/SynchronizationCredentials.java +++ /dev/null @@ -1,67 +0,0 @@ -package de.danoeh.antennapod.core.sync; - -import android.content.Context; -import android.content.SharedPreferences; -import de.danoeh.antennapod.core.ClientConfig; -import de.danoeh.antennapod.storage.preferences.UserPreferences; -import de.danoeh.antennapod.core.sync.queue.SynchronizationQueueSink; - -/** - * Manages preferences for accessing gpodder.net service and other sync providers - */ -public class SynchronizationCredentials { - - private SynchronizationCredentials() { - } - - private static final String PREF_NAME = "gpodder.net"; - private static final String PREF_USERNAME = "de.danoeh.antennapod.preferences.gpoddernet.username"; - private static final String PREF_PASSWORD = "de.danoeh.antennapod.preferences.gpoddernet.password"; - private static final String PREF_DEVICEID = "de.danoeh.antennapod.preferences.gpoddernet.deviceID"; - private static final String PREF_HOSTNAME = "prefGpodnetHostname"; - - private static SharedPreferences getPreferences() { - return ClientConfig.applicationCallbacks.getApplicationInstance() - .getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); - } - - public static String getUsername() { - return getPreferences().getString(PREF_USERNAME, null); - } - - public static void setUsername(String username) { - getPreferences().edit().putString(PREF_USERNAME, username).apply(); - } - - public static String getPassword() { - return getPreferences().getString(PREF_PASSWORD, null); - } - - public static void setPassword(String password) { - getPreferences().edit().putString(PREF_PASSWORD, password).apply(); - } - - public static String getDeviceID() { - return getPreferences().getString(PREF_DEVICEID, null); - } - - public static void setDeviceID(String deviceID) { - getPreferences().edit().putString(PREF_DEVICEID, deviceID).apply(); - } - - public static String getHosturl() { - return getPreferences().getString(PREF_HOSTNAME, null); - } - - public static void setHosturl(String value) { - getPreferences().edit().putString(PREF_HOSTNAME, value).apply(); - } - - public static synchronized void clear(Context context) { - setUsername(null); - setPassword(null); - setDeviceID(null); - SynchronizationQueueSink.clearQueue(context); - UserPreferences.setGpodnetNotificationsEnabled(); - } -} diff --git a/core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_feed.xml index ae080d335..ae080d335 100644 --- a/core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml +++ b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_feed.xml diff --git a/core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_playlist.xml index 5d3ce4954..5d3ce4954 100644 --- a/core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml +++ b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_playlist.xml diff --git a/core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_refresh.xml index 1a7752443..1a7752443 100644 --- a/core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml +++ b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_refresh.xml diff --git a/core/src/main/res/drawable-anydpi-v26/ic_subscriptions_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_subscriptions.xml index 10f437917..10f437917 100644 --- a/core/src/main/res/drawable-anydpi-v26/ic_subscriptions_shortcut.xml +++ b/core/src/main/res/drawable-anydpi-v26/ic_shortcut_subscriptions.xml diff --git a/core/src/main/res/drawable/drawer_item_background.xml b/core/src/main/res/drawable/bg_drawer_item.xml index 40727bf50..40727bf50 100644 --- a/core/src/main/res/drawable/drawer_item_background.xml +++ b/core/src/main/res/drawable/bg_drawer_item.xml diff --git a/core/src/main/res/drawable/ic_feed_shortcut.xml b/core/src/main/res/drawable/ic_shortcut_feed.xml index fa5a0267c..fa5a0267c 100644 --- a/core/src/main/res/drawable/ic_feed_shortcut.xml +++ b/core/src/main/res/drawable/ic_shortcut_feed.xml diff --git a/core/src/main/res/drawable/ic_playlist_shortcut.xml b/core/src/main/res/drawable/ic_shortcut_playlist.xml index 8d01f24a3..8d01f24a3 100644 --- a/core/src/main/res/drawable/ic_playlist_shortcut.xml +++ b/core/src/main/res/drawable/ic_shortcut_playlist.xml diff --git a/core/src/main/res/drawable/ic_refresh_shortcut.xml b/core/src/main/res/drawable/ic_shortcut_refresh.xml index 2f1b37337..2f1b37337 100644 --- a/core/src/main/res/drawable/ic_refresh_shortcut.xml +++ b/core/src/main/res/drawable/ic_shortcut_refresh.xml diff --git a/core/src/main/res/drawable/ic_subscriptions_shortcut.xml b/core/src/main/res/drawable/ic_shortcut_subscriptions.xml index b932aebaf..b932aebaf 100644 --- a/core/src/main/res/drawable/ic_subscriptions_shortcut.xml +++ b/core/src/main/res/drawable/ic_shortcut_subscriptions.xml diff --git a/net/discovery/build.gradle b/net/discovery/build.gradle index d071f1ba7..a20ddeb43 100644 --- a/net/discovery/build.gradle +++ b/net/discovery/build.gradle @@ -19,11 +19,12 @@ android { } dependencies { - implementation project(':core') implementation project(':model') implementation project(':net:common') implementation project(':net:sync:gpoddernet') implementation project(':net:sync:model') + implementation project(':storage:preferences') + implementation project(':ui:i18n') annotationProcessor "androidx.annotation:annotation:$annotationVersion" diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedUrlNotFoundException.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FeedUrlNotFoundException.java index 93b7e5d84..15ba3eb6f 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedUrlNotFoundException.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FeedUrlNotFoundException.java @@ -1,4 +1,4 @@ -package de.danoeh.antennapod.core.feed; +package de.danoeh.antennapod.net.discovery; import java.io.IOException; diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java index a3f2c648f..270aa7a0e 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java @@ -1,10 +1,10 @@ package de.danoeh.antennapod.net.discovery; -import de.danoeh.antennapod.core.sync.SynchronizationCredentials; import de.danoeh.antennapod.net.common.AntennapodHttpClient; import de.danoeh.antennapod.net.sync.gpoddernet.GpodnetService; import de.danoeh.antennapod.net.sync.gpoddernet.GpodnetServiceException; import de.danoeh.antennapod.net.sync.gpoddernet.model.GpodnetPodcast; +import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import io.reactivex.Single; import io.reactivex.SingleOnSubscribe; import io.reactivex.android.schedulers.AndroidSchedulers; @@ -18,7 +18,7 @@ public class GpodnetPodcastSearcher implements PodcastSearcher { return Single.create((SingleOnSubscribe<List<PodcastSearchResult>>) subscriber -> { try { GpodnetService service = new GpodnetService(AntennapodHttpClient.getHttpClient(), - SynchronizationCredentials.getHosturl(), SynchronizationCredentials.getDeviceID(), + SynchronizationCredentials.getHosturl(), SynchronizationCredentials.getDeviceId(), SynchronizationCredentials.getUsername(), SynchronizationCredentials.getPassword()); List<GpodnetPodcast> gpodnetPodcasts = service.searchPodcasts(query, 0); List<PodcastSearchResult> results = new ArrayList<>(); diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java index b9df9d185..a50a33452 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java @@ -1,6 +1,5 @@ package de.danoeh.antennapod.net.discovery; -import de.danoeh.antennapod.core.feed.FeedUrlNotFoundException; import de.danoeh.antennapod.net.common.AntennapodHttpClient; import io.reactivex.Single; import io.reactivex.SingleOnSubscribe; diff --git a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/SynchronizationCredentials.java b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/SynchronizationCredentials.java new file mode 100644 index 000000000..a5613b4ec --- /dev/null +++ b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/SynchronizationCredentials.java @@ -0,0 +1,60 @@ +package de.danoeh.antennapod.storage.preferences; + +import android.content.Context; +import android.content.SharedPreferences; + +/** + * Manages preferences for accessing gpodder.net service and other sync providers + */ +public abstract class SynchronizationCredentials { + private static final String PREF_NAME = "gpodder.net"; + private static final String PREF_USERNAME = "de.danoeh.antennapod.preferences.gpoddernet.username"; + private static final String PREF_PASSWORD = "de.danoeh.antennapod.preferences.gpoddernet.password"; + private static final String PREF_DEVICEID = "de.danoeh.antennapod.preferences.gpoddernet.deviceID"; + private static final String PREF_HOSTNAME = "prefGpodnetHostname"; + + private static SharedPreferences prefs; + + public static void init(Context context) { + prefs = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); + } + + public static String getUsername() { + return prefs.getString(PREF_USERNAME, null); + } + + public static void setUsername(String username) { + prefs.edit().putString(PREF_USERNAME, username).apply(); + } + + public static String getPassword() { + return prefs.getString(PREF_PASSWORD, null); + } + + public static void setPassword(String password) { + prefs.edit().putString(PREF_PASSWORD, password).apply(); + } + + public static String getDeviceId() { + return prefs.getString(PREF_DEVICEID, null); + } + + public static void setDeviceId(String deviceId) { + prefs.edit().putString(PREF_DEVICEID, deviceId).apply(); + } + + public static String getHosturl() { + return prefs.getString(PREF_HOSTNAME, null); + } + + public static void setHosturl(String value) { + prefs.edit().putString(PREF_HOSTNAME, value).apply(); + } + + public static synchronized void clear() { + setUsername(null); + setPassword(null); + setDeviceId(null); + UserPreferences.setGpodnetNotificationsEnabled(); + } +} diff --git a/core/src/main/res/drawable/ic_add.xml b/ui/common/src/main/res/drawable/ic_add.xml index 404275dd3..404275dd3 100644 --- a/core/src/main/res/drawable/ic_add.xml +++ b/ui/common/src/main/res/drawable/ic_add.xml diff --git a/core/src/main/res/drawable/ic_appearance.xml b/ui/common/src/main/res/drawable/ic_appearance.xml index b65bc0194..b65bc0194 100644 --- a/core/src/main/res/drawable/ic_appearance.xml +++ b/ui/common/src/main/res/drawable/ic_appearance.xml diff --git a/core/src/main/res/drawable/ic_arrow_down.xml b/ui/common/src/main/res/drawable/ic_arrow_down.xml index 187aa79c7..187aa79c7 100644 --- a/core/src/main/res/drawable/ic_arrow_down.xml +++ b/ui/common/src/main/res/drawable/ic_arrow_down.xml diff --git a/core/src/main/res/drawable/ic_arrow_right_white.xml b/ui/common/src/main/res/drawable/ic_arrow_right_white.xml index 4f33bed08..4f33bed08 100644 --- a/core/src/main/res/drawable/ic_arrow_right_white.xml +++ b/ui/common/src/main/res/drawable/ic_arrow_right_white.xml diff --git a/core/src/main/res/drawable/ic_bug.xml b/ui/common/src/main/res/drawable/ic_bug.xml index c2086502c..c2086502c 100644 --- a/core/src/main/res/drawable/ic_bug.xml +++ b/ui/common/src/main/res/drawable/ic_bug.xml diff --git a/core/src/main/res/drawable/ic_cancel.xml b/ui/common/src/main/res/drawable/ic_cancel.xml index dcb2e0fc7..dcb2e0fc7 100644 --- a/core/src/main/res/drawable/ic_cancel.xml +++ b/ui/common/src/main/res/drawable/ic_cancel.xml diff --git a/core/src/main/res/drawable/ic_chapter_next.xml b/ui/common/src/main/res/drawable/ic_chapter_next.xml index bcf38aeb6..bcf38aeb6 100644 --- a/core/src/main/res/drawable/ic_chapter_next.xml +++ b/ui/common/src/main/res/drawable/ic_chapter_next.xml diff --git a/core/src/main/res/drawable/ic_chapter_prev.xml b/ui/common/src/main/res/drawable/ic_chapter_prev.xml index f01b30364..f01b30364 100644 --- a/core/src/main/res/drawable/ic_chapter_prev.xml +++ b/ui/common/src/main/res/drawable/ic_chapter_prev.xml diff --git a/core/src/main/res/drawable/ic_chart_box.xml b/ui/common/src/main/res/drawable/ic_chart_box.xml index 9fba84fa5..9fba84fa5 100644 --- a/core/src/main/res/drawable/ic_chart_box.xml +++ b/ui/common/src/main/res/drawable/ic_chart_box.xml diff --git a/core/src/main/res/drawable/ic_chat.xml b/ui/common/src/main/res/drawable/ic_chat.xml index 63044c237..63044c237 100644 --- a/core/src/main/res/drawable/ic_chat.xml +++ b/ui/common/src/main/res/drawable/ic_chat.xml diff --git a/core/src/main/res/drawable/ic_check.xml b/ui/common/src/main/res/drawable/ic_check.xml index 4338bd156..4338bd156 100644 --- a/core/src/main/res/drawable/ic_check.xml +++ b/ui/common/src/main/res/drawable/ic_check.xml diff --git a/core/src/main/res/drawable/ic_checkbox_background.xml b/ui/common/src/main/res/drawable/ic_checkbox_background.xml index 470ac4a5c..470ac4a5c 100644 --- a/core/src/main/res/drawable/ic_checkbox_background.xml +++ b/ui/common/src/main/res/drawable/ic_checkbox_background.xml diff --git a/core/src/main/res/drawable/ic_close_white.xml b/ui/common/src/main/res/drawable/ic_close_white.xml index d37d3f963..d37d3f963 100644 --- a/core/src/main/res/drawable/ic_close_white.xml +++ b/ui/common/src/main/res/drawable/ic_close_white.xml diff --git a/core/src/main/res/drawable/ic_cloud.xml b/ui/common/src/main/res/drawable/ic_cloud.xml index 52148a56c..52148a56c 100644 --- a/core/src/main/res/drawable/ic_cloud.xml +++ b/ui/common/src/main/res/drawable/ic_cloud.xml diff --git a/core/src/main/res/drawable/ic_contribute.xml b/ui/common/src/main/res/drawable/ic_contribute.xml index b934453b1..b934453b1 100644 --- a/core/src/main/res/drawable/ic_contribute.xml +++ b/ui/common/src/main/res/drawable/ic_contribute.xml diff --git a/core/src/main/res/drawable/ic_curved_arrow.xml b/ui/common/src/main/res/drawable/ic_curved_arrow.xml index e0baab50a..e0baab50a 100644 --- a/core/src/main/res/drawable/ic_curved_arrow.xml +++ b/ui/common/src/main/res/drawable/ic_curved_arrow.xml diff --git a/core/src/main/res/drawable/ic_delete.xml b/ui/common/src/main/res/drawable/ic_delete.xml index 6d3cb6a27..6d3cb6a27 100644 --- a/core/src/main/res/drawable/ic_delete.xml +++ b/ui/common/src/main/res/drawable/ic_delete.xml diff --git a/core/src/main/res/drawable/ic_delete_auto.xml b/ui/common/src/main/res/drawable/ic_delete_auto.xml index 9ed6abd24..9ed6abd24 100644 --- a/core/src/main/res/drawable/ic_delete_auto.xml +++ b/ui/common/src/main/res/drawable/ic_delete_auto.xml diff --git a/core/src/main/res/drawable/ic_disc_alert.xml b/ui/common/src/main/res/drawable/ic_disc_alert.xml index 6a2c11187..6a2c11187 100644 --- a/core/src/main/res/drawable/ic_disc_alert.xml +++ b/ui/common/src/main/res/drawable/ic_disc_alert.xml diff --git a/core/src/main/res/drawable/ic_download.xml b/ui/common/src/main/res/drawable/ic_download.xml index 84a723fa6..84a723fa6 100644 --- a/core/src/main/res/drawable/ic_download.xml +++ b/ui/common/src/main/res/drawable/ic_download.xml diff --git a/core/src/main/res/drawable/ic_download_black.xml b/ui/common/src/main/res/drawable/ic_download_black.xml index eba137a59..eba137a59 100644 --- a/core/src/main/res/drawable/ic_download_black.xml +++ b/ui/common/src/main/res/drawable/ic_download_black.xml diff --git a/core/src/main/res/drawable/ic_error.xml b/ui/common/src/main/res/drawable/ic_error.xml index fc4fa2b9a..fc4fa2b9a 100644 --- a/core/src/main/res/drawable/ic_error.xml +++ b/ui/common/src/main/res/drawable/ic_error.xml diff --git a/core/src/main/res/drawable/ic_eye.xml b/ui/common/src/main/res/drawable/ic_eye.xml index b03875e4a..b03875e4a 100644 --- a/core/src/main/res/drawable/ic_eye.xml +++ b/ui/common/src/main/res/drawable/ic_eye.xml diff --git a/core/src/main/res/drawable/ic_fab_edit.xml b/ui/common/src/main/res/drawable/ic_fab_edit.xml index 6fd80e29f..6fd80e29f 100644 --- a/core/src/main/res/drawable/ic_fab_edit.xml +++ b/ui/common/src/main/res/drawable/ic_fab_edit.xml diff --git a/core/src/main/res/drawable/ic_fast_forward.xml b/ui/common/src/main/res/drawable/ic_fast_forward.xml index 29a607074..29a607074 100644 --- a/core/src/main/res/drawable/ic_fast_forward.xml +++ b/ui/common/src/main/res/drawable/ic_fast_forward.xml diff --git a/core/src/main/res/drawable/ic_fast_forward_video_white.xml b/ui/common/src/main/res/drawable/ic_fast_forward_video_white.xml index a60145f1d..a60145f1d 100644 --- a/core/src/main/res/drawable/ic_fast_forward_video_white.xml +++ b/ui/common/src/main/res/drawable/ic_fast_forward_video_white.xml diff --git a/core/src/main/res/drawable/ic_fast_rewind.xml b/ui/common/src/main/res/drawable/ic_fast_rewind.xml index 634bae8e8..634bae8e8 100644 --- a/core/src/main/res/drawable/ic_fast_rewind.xml +++ b/ui/common/src/main/res/drawable/ic_fast_rewind.xml diff --git a/core/src/main/res/drawable/ic_fast_rewind_video_white.xml b/ui/common/src/main/res/drawable/ic_fast_rewind_video_white.xml index 4609e0c3e..4609e0c3e 100644 --- a/core/src/main/res/drawable/ic_fast_rewind_video_white.xml +++ b/ui/common/src/main/res/drawable/ic_fast_rewind_video_white.xml diff --git a/core/src/main/res/drawable/ic_feed.xml b/ui/common/src/main/res/drawable/ic_feed.xml index e1d650aba..e1d650aba 100644 --- a/core/src/main/res/drawable/ic_feed.xml +++ b/ui/common/src/main/res/drawable/ic_feed.xml diff --git a/core/src/main/res/drawable/ic_feed_black.xml b/ui/common/src/main/res/drawable/ic_feed_black.xml index 1d64ff5f8..1d64ff5f8 100644 --- a/core/src/main/res/drawable/ic_feed_black.xml +++ b/ui/common/src/main/res/drawable/ic_feed_black.xml diff --git a/core/src/main/res/drawable/ic_filter.xml b/ui/common/src/main/res/drawable/ic_filter.xml index d634fe7a0..d634fe7a0 100644 --- a/core/src/main/res/drawable/ic_filter.xml +++ b/ui/common/src/main/res/drawable/ic_filter.xml diff --git a/core/src/main/res/drawable/ic_filter_white.xml b/ui/common/src/main/res/drawable/ic_filter_white.xml index e60023497..e60023497 100644 --- a/core/src/main/res/drawable/ic_filter_white.xml +++ b/ui/common/src/main/res/drawable/ic_filter_white.xml diff --git a/core/src/main/res/drawable/ic_folder.xml b/ui/common/src/main/res/drawable/ic_folder.xml index 5b0e845e7..5b0e845e7 100644 --- a/core/src/main/res/drawable/ic_folder.xml +++ b/ui/common/src/main/res/drawable/ic_folder.xml diff --git a/core/src/main/res/drawable/ic_history.xml b/ui/common/src/main/res/drawable/ic_history.xml index bfa35267c..bfa35267c 100644 --- a/core/src/main/res/drawable/ic_history.xml +++ b/ui/common/src/main/res/drawable/ic_history.xml diff --git a/core/src/main/res/drawable/ic_history_remove.xml b/ui/common/src/main/res/drawable/ic_history_remove.xml index 12d475a60..12d475a60 100644 --- a/core/src/main/res/drawable/ic_history_remove.xml +++ b/ui/common/src/main/res/drawable/ic_history_remove.xml diff --git a/core/src/main/res/drawable/ic_home.xml b/ui/common/src/main/res/drawable/ic_home.xml index dc5a8dd52..dc5a8dd52 100644 --- a/core/src/main/res/drawable/ic_home.xml +++ b/ui/common/src/main/res/drawable/ic_home.xml diff --git a/core/src/main/res/drawable/ic_inbox.xml b/ui/common/src/main/res/drawable/ic_inbox.xml index 5482a1d36..5482a1d36 100644 --- a/core/src/main/res/drawable/ic_inbox.xml +++ b/ui/common/src/main/res/drawable/ic_inbox.xml diff --git a/core/src/main/res/drawable/ic_info.xml b/ui/common/src/main/res/drawable/ic_info.xml index 3fd641ec3..3fd641ec3 100644 --- a/core/src/main/res/drawable/ic_info.xml +++ b/ui/common/src/main/res/drawable/ic_info.xml diff --git a/core/src/main/res/drawable/ic_info_white.xml b/ui/common/src/main/res/drawable/ic_info_white.xml index 3abb510bb..3abb510bb 100644 --- a/core/src/main/res/drawable/ic_info_white.xml +++ b/ui/common/src/main/res/drawable/ic_info_white.xml diff --git a/core/src/main/res/drawable/ic_key.xml b/ui/common/src/main/res/drawable/ic_key.xml index cae7afb97..cae7afb97 100644 --- a/core/src/main/res/drawable/ic_key.xml +++ b/ui/common/src/main/res/drawable/ic_key.xml diff --git a/core/src/main/res/drawable/ic_load_more.xml b/ui/common/src/main/res/drawable/ic_load_more.xml index bd88f5c11..bd88f5c11 100644 --- a/core/src/main/res/drawable/ic_load_more.xml +++ b/ui/common/src/main/res/drawable/ic_load_more.xml diff --git a/core/src/main/res/drawable/ic_mark_played.xml b/ui/common/src/main/res/drawable/ic_mark_played.xml index dc0a2bb58..dc0a2bb58 100644 --- a/core/src/main/res/drawable/ic_mark_played.xml +++ b/ui/common/src/main/res/drawable/ic_mark_played.xml diff --git a/core/src/main/res/drawable/ic_mark_unplayed.xml b/ui/common/src/main/res/drawable/ic_mark_unplayed.xml index 60b07e97f..60b07e97f 100644 --- a/core/src/main/res/drawable/ic_mark_unplayed.xml +++ b/ui/common/src/main/res/drawable/ic_mark_unplayed.xml diff --git a/core/src/main/res/drawable/ic_notifications.xml b/ui/common/src/main/res/drawable/ic_notifications.xml index 927a72d4a..927a72d4a 100644 --- a/core/src/main/res/drawable/ic_notifications.xml +++ b/ui/common/src/main/res/drawable/ic_notifications.xml diff --git a/core/src/main/res/drawable/ic_paperclip.xml b/ui/common/src/main/res/drawable/ic_paperclip.xml index dd6673c13..dd6673c13 100644 --- a/core/src/main/res/drawable/ic_paperclip.xml +++ b/ui/common/src/main/res/drawable/ic_paperclip.xml diff --git a/core/src/main/res/drawable/ic_pause.xml b/ui/common/src/main/res/drawable/ic_pause.xml index 9132bb8b4..9132bb8b4 100644 --- a/core/src/main/res/drawable/ic_pause.xml +++ b/ui/common/src/main/res/drawable/ic_pause.xml diff --git a/core/src/main/res/drawable/ic_pause_video_white.xml b/ui/common/src/main/res/drawable/ic_pause_video_white.xml index ad8847cb7..ad8847cb7 100644 --- a/core/src/main/res/drawable/ic_pause_video_white.xml +++ b/ui/common/src/main/res/drawable/ic_pause_video_white.xml diff --git a/core/src/main/res/drawable/ic_play_24dp.xml b/ui/common/src/main/res/drawable/ic_play_24dp.xml index 515996b3d..515996b3d 100644 --- a/core/src/main/res/drawable/ic_play_24dp.xml +++ b/ui/common/src/main/res/drawable/ic_play_24dp.xml diff --git a/core/src/main/res/drawable/ic_play_48dp.xml b/ui/common/src/main/res/drawable/ic_play_48dp.xml index 01c156e02..01c156e02 100644 --- a/core/src/main/res/drawable/ic_play_48dp.xml +++ b/ui/common/src/main/res/drawable/ic_play_48dp.xml diff --git a/core/src/main/res/drawable/ic_play_video_white.xml b/ui/common/src/main/res/drawable/ic_play_video_white.xml index 9f9dbb1b1..9f9dbb1b1 100644 --- a/core/src/main/res/drawable/ic_play_video_white.xml +++ b/ui/common/src/main/res/drawable/ic_play_video_white.xml diff --git a/core/src/main/res/drawable/ic_playback_speed.xml b/ui/common/src/main/res/drawable/ic_playback_speed.xml index 2813532cf..2813532cf 100644 --- a/core/src/main/res/drawable/ic_playback_speed.xml +++ b/ui/common/src/main/res/drawable/ic_playback_speed.xml diff --git a/core/src/main/res/drawable/ic_playlist_play.xml b/ui/common/src/main/res/drawable/ic_playlist_play.xml index 24635798b..24635798b 100644 --- a/core/src/main/res/drawable/ic_playlist_play.xml +++ b/ui/common/src/main/res/drawable/ic_playlist_play.xml diff --git a/core/src/main/res/drawable/ic_playlist_play_black.xml b/ui/common/src/main/res/drawable/ic_playlist_play_black.xml index adca5f7ee..adca5f7ee 100644 --- a/core/src/main/res/drawable/ic_playlist_play_black.xml +++ b/ui/common/src/main/res/drawable/ic_playlist_play_black.xml diff --git a/core/src/main/res/drawable/ic_playlist_remove.xml b/ui/common/src/main/res/drawable/ic_playlist_remove.xml index 3d62ab6cc..3d62ab6cc 100644 --- a/core/src/main/res/drawable/ic_playlist_remove.xml +++ b/ui/common/src/main/res/drawable/ic_playlist_remove.xml diff --git a/core/src/main/res/drawable/ic_questionmark.xml b/ui/common/src/main/res/drawable/ic_questionmark.xml index d00e3ae0d..d00e3ae0d 100644 --- a/core/src/main/res/drawable/ic_questionmark.xml +++ b/ui/common/src/main/res/drawable/ic_questionmark.xml diff --git a/core/src/main/res/drawable/ic_refresh.xml b/ui/common/src/main/res/drawable/ic_refresh.xml index 487ceb3a1..487ceb3a1 100644 --- a/core/src/main/res/drawable/ic_refresh.xml +++ b/ui/common/src/main/res/drawable/ic_refresh.xml diff --git a/core/src/main/res/drawable/ic_refresh_black.xml b/ui/common/src/main/res/drawable/ic_refresh_black.xml index 3d96b1739..3d96b1739 100644 --- a/core/src/main/res/drawable/ic_refresh_black.xml +++ b/ui/common/src/main/res/drawable/ic_refresh_black.xml diff --git a/core/src/main/res/drawable/ic_replay.xml b/ui/common/src/main/res/drawable/ic_replay.xml index b7442ff27..b7442ff27 100644 --- a/core/src/main/res/drawable/ic_replay.xml +++ b/ui/common/src/main/res/drawable/ic_replay.xml diff --git a/core/src/main/res/drawable/ic_rounded_corner_left.xml b/ui/common/src/main/res/drawable/ic_rounded_corner_left.xml index 8b1b90605..8b1b90605 100644 --- a/core/src/main/res/drawable/ic_rounded_corner_left.xml +++ b/ui/common/src/main/res/drawable/ic_rounded_corner_left.xml diff --git a/core/src/main/res/drawable/ic_rounded_corner_right.xml b/ui/common/src/main/res/drawable/ic_rounded_corner_right.xml index 56decd91c..56decd91c 100644 --- a/core/src/main/res/drawable/ic_rounded_corner_right.xml +++ b/ui/common/src/main/res/drawable/ic_rounded_corner_right.xml diff --git a/core/src/main/res/drawable/ic_search.xml b/ui/common/src/main/res/drawable/ic_search.xml index d21ba4894..d21ba4894 100644 --- a/core/src/main/res/drawable/ic_search.xml +++ b/ui/common/src/main/res/drawable/ic_search.xml diff --git a/core/src/main/res/drawable/ic_select_all.xml b/ui/common/src/main/res/drawable/ic_select_all.xml index 29e4dbfff..29e4dbfff 100644 --- a/core/src/main/res/drawable/ic_select_all.xml +++ b/ui/common/src/main/res/drawable/ic_select_all.xml diff --git a/core/src/main/res/drawable/ic_select_none.xml b/ui/common/src/main/res/drawable/ic_select_none.xml index c2b3cd481..c2b3cd481 100644 --- a/core/src/main/res/drawable/ic_select_none.xml +++ b/ui/common/src/main/res/drawable/ic_select_none.xml diff --git a/core/src/main/res/drawable/ic_settings.xml b/ui/common/src/main/res/drawable/ic_settings.xml index ea655eaa9..ea655eaa9 100644 --- a/core/src/main/res/drawable/ic_settings.xml +++ b/ui/common/src/main/res/drawable/ic_settings.xml diff --git a/core/src/main/res/drawable/ic_settings_white.xml b/ui/common/src/main/res/drawable/ic_settings_white.xml index 63b5c79ef..63b5c79ef 100644 --- a/core/src/main/res/drawable/ic_settings_white.xml +++ b/ui/common/src/main/res/drawable/ic_settings_white.xml diff --git a/core/src/main/res/drawable/ic_share.xml b/ui/common/src/main/res/drawable/ic_share.xml index 574707dd9..574707dd9 100644 --- a/core/src/main/res/drawable/ic_share.xml +++ b/ui/common/src/main/res/drawable/ic_share.xml diff --git a/core/src/main/res/drawable/ic_shortcut_background.xml b/ui/common/src/main/res/drawable/ic_shortcut_background.xml index 9327150d0..9327150d0 100644 --- a/core/src/main/res/drawable/ic_shortcut_background.xml +++ b/ui/common/src/main/res/drawable/ic_shortcut_background.xml diff --git a/core/src/main/res/drawable/ic_shuffle.xml b/ui/common/src/main/res/drawable/ic_shuffle.xml index 085397444..085397444 100644 --- a/core/src/main/res/drawable/ic_shuffle.xml +++ b/ui/common/src/main/res/drawable/ic_shuffle.xml diff --git a/core/src/main/res/drawable/ic_skip_24dp.xml b/ui/common/src/main/res/drawable/ic_skip_24dp.xml index 76d0976f0..76d0976f0 100644 --- a/core/src/main/res/drawable/ic_skip_24dp.xml +++ b/ui/common/src/main/res/drawable/ic_skip_24dp.xml diff --git a/core/src/main/res/drawable/ic_skip_48dp.xml b/ui/common/src/main/res/drawable/ic_skip_48dp.xml index 9e4b00ef0..9e4b00ef0 100644 --- a/core/src/main/res/drawable/ic_skip_48dp.xml +++ b/ui/common/src/main/res/drawable/ic_skip_48dp.xml diff --git a/core/src/main/res/drawable/ic_sleep.xml b/ui/common/src/main/res/drawable/ic_sleep.xml index e0ef41607..e0ef41607 100644 --- a/core/src/main/res/drawable/ic_sleep.xml +++ b/ui/common/src/main/res/drawable/ic_sleep.xml diff --git a/core/src/main/res/drawable/ic_sleep_off.xml b/ui/common/src/main/res/drawable/ic_sleep_off.xml index a9a6f78d0..a9a6f78d0 100644 --- a/core/src/main/res/drawable/ic_sleep_off.xml +++ b/ui/common/src/main/res/drawable/ic_sleep_off.xml diff --git a/core/src/main/res/drawable/ic_star.xml b/ui/common/src/main/res/drawable/ic_star.xml index 66cba0557..66cba0557 100644 --- a/core/src/main/res/drawable/ic_star.xml +++ b/ui/common/src/main/res/drawable/ic_star.xml diff --git a/core/src/main/res/drawable/ic_star_border.xml b/ui/common/src/main/res/drawable/ic_star_border.xml index d4f68de44..d4f68de44 100644 --- a/core/src/main/res/drawable/ic_star_border.xml +++ b/ui/common/src/main/res/drawable/ic_star_border.xml diff --git a/core/src/main/res/drawable/ic_storage.xml b/ui/common/src/main/res/drawable/ic_storage.xml index 8b0c76c11..8b0c76c11 100644 --- a/core/src/main/res/drawable/ic_storage.xml +++ b/ui/common/src/main/res/drawable/ic_storage.xml diff --git a/core/src/main/res/drawable/ic_stream.xml b/ui/common/src/main/res/drawable/ic_stream.xml index cbc40701a..cbc40701a 100644 --- a/core/src/main/res/drawable/ic_stream.xml +++ b/ui/common/src/main/res/drawable/ic_stream.xml diff --git a/core/src/main/res/drawable/ic_subscriptions.xml b/ui/common/src/main/res/drawable/ic_subscriptions.xml index 325f38450..325f38450 100644 --- a/core/src/main/res/drawable/ic_subscriptions.xml +++ b/ui/common/src/main/res/drawable/ic_subscriptions.xml diff --git a/core/src/main/res/drawable/ic_subscriptions_black.xml b/ui/common/src/main/res/drawable/ic_subscriptions_black.xml index b8200c5ba..b8200c5ba 100644 --- a/core/src/main/res/drawable/ic_subscriptions_black.xml +++ b/ui/common/src/main/res/drawable/ic_subscriptions_black.xml diff --git a/core/src/main/res/drawable/ic_tag.xml b/ui/common/src/main/res/drawable/ic_tag.xml index 95db04e93..95db04e93 100644 --- a/core/src/main/res/drawable/ic_tag.xml +++ b/ui/common/src/main/res/drawable/ic_tag.xml diff --git a/core/src/main/res/drawable/ic_videocam.xml b/ui/common/src/main/res/drawable/ic_videocam.xml index fd4adb0e4..fd4adb0e4 100644 --- a/core/src/main/res/drawable/ic_videocam.xml +++ b/ui/common/src/main/res/drawable/ic_videocam.xml diff --git a/core/src/main/res/drawable/ic_volume_adaption.xml b/ui/common/src/main/res/drawable/ic_volume_adaption.xml index 0ebaceea2..0ebaceea2 100644 --- a/core/src/main/res/drawable/ic_volume_adaption.xml +++ b/ui/common/src/main/res/drawable/ic_volume_adaption.xml diff --git a/core/src/main/res/drawable/ic_web.xml b/ui/common/src/main/res/drawable/ic_web.xml index 4b05102a4..4b05102a4 100644 --- a/core/src/main/res/drawable/ic_web.xml +++ b/ui/common/src/main/res/drawable/ic_web.xml diff --git a/ui/echo/build.gradle b/ui/echo/build.gradle index 820ccb208..7f3351d13 100644 --- a/ui/echo/build.gradle +++ b/ui/echo/build.gradle @@ -13,7 +13,6 @@ android { } dependencies { - implementation project(":core") implementation project(":model") implementation project(':storage:database') implementation project(":storage:preferences") diff --git a/core/src/main/res/drawable-hdpi/ic_notification.png b/ui/notifications/src/main/res/drawable-hdpi/ic_notification.png Binary files differindex c49404f8c..c49404f8c 100644 --- a/core/src/main/res/drawable-hdpi/ic_notification.png +++ b/ui/notifications/src/main/res/drawable-hdpi/ic_notification.png diff --git a/core/src/main/res/drawable-hdpi/ic_notification_new.png b/ui/notifications/src/main/res/drawable-hdpi/ic_notification_new.png Binary files differindex cef10dc6f..cef10dc6f 100644 --- a/core/src/main/res/drawable-hdpi/ic_notification_new.png +++ b/ui/notifications/src/main/res/drawable-hdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-mdpi/ic_notification.png b/ui/notifications/src/main/res/drawable-mdpi/ic_notification.png Binary files differindex 5a2c3c590..5a2c3c590 100644 --- a/core/src/main/res/drawable-mdpi/ic_notification.png +++ b/ui/notifications/src/main/res/drawable-mdpi/ic_notification.png diff --git a/core/src/main/res/drawable-mdpi/ic_notification_new.png b/ui/notifications/src/main/res/drawable-mdpi/ic_notification_new.png Binary files differindex a8c4de14a..a8c4de14a 100644 --- a/core/src/main/res/drawable-mdpi/ic_notification_new.png +++ b/ui/notifications/src/main/res/drawable-mdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-xhdpi/ic_notification.png b/ui/notifications/src/main/res/drawable-xhdpi/ic_notification.png Binary files differindex 433eec476..433eec476 100644 --- a/core/src/main/res/drawable-xhdpi/ic_notification.png +++ b/ui/notifications/src/main/res/drawable-xhdpi/ic_notification.png diff --git a/core/src/main/res/drawable-xhdpi/ic_notification_new.png b/ui/notifications/src/main/res/drawable-xhdpi/ic_notification_new.png Binary files differindex 765827b18..765827b18 100644 --- a/core/src/main/res/drawable-xhdpi/ic_notification_new.png +++ b/ui/notifications/src/main/res/drawable-xhdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-xxhdpi/ic_notification.png b/ui/notifications/src/main/res/drawable-xxhdpi/ic_notification.png Binary files differindex db44a547f..db44a547f 100644 --- a/core/src/main/res/drawable-xxhdpi/ic_notification.png +++ b/ui/notifications/src/main/res/drawable-xxhdpi/ic_notification.png diff --git a/core/src/main/res/drawable-xxhdpi/ic_notification_new.png b/ui/notifications/src/main/res/drawable-xxhdpi/ic_notification_new.png Binary files differindex 3d47c6f2e..3d47c6f2e 100644 --- a/core/src/main/res/drawable-xxhdpi/ic_notification_new.png +++ b/ui/notifications/src/main/res/drawable-xxhdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-xxxhdpi/ic_notification.png b/ui/notifications/src/main/res/drawable-xxxhdpi/ic_notification.png Binary files differindex e38b1de34..e38b1de34 100644 --- a/core/src/main/res/drawable-xxxhdpi/ic_notification.png +++ b/ui/notifications/src/main/res/drawable-xxxhdpi/ic_notification.png diff --git a/core/src/main/res/drawable-xxxhdpi/ic_notification_new.png b/ui/notifications/src/main/res/drawable-xxxhdpi/ic_notification_new.png Binary files differindex c1e74c077..c1e74c077 100644 --- a/core/src/main/res/drawable-xxxhdpi/ic_notification_new.png +++ b/ui/notifications/src/main/res/drawable-xxxhdpi/ic_notification_new.png diff --git a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java index d28355dad..388359e3d 100644 --- a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java +++ b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java @@ -18,9 +18,10 @@ import androidx.annotation.Nullable; import com.google.android.material.dialog.MaterialAlertDialogBuilder; import androidx.fragment.app.DialogFragment; import com.google.android.material.button.MaterialButton; +import de.danoeh.antennapod.core.sync.queue.SynchronizationQueueSink; import de.danoeh.antennapod.net.common.AntennapodHttpClient; import de.danoeh.antennapod.core.sync.SyncService; -import de.danoeh.antennapod.core.sync.SynchronizationCredentials; +import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import de.danoeh.antennapod.core.sync.SynchronizationProviderViewData; import de.danoeh.antennapod.core.sync.SynchronizationSettings; import de.danoeh.antennapod.core.util.FileNameGenerator; @@ -83,10 +84,11 @@ public class GpodderAuthenticationFragment extends DialogFragment { if (serverUrlText.getText().length() == 0) { return; } - SynchronizationCredentials.clear(getContext()); + SynchronizationCredentials.clear(); + SynchronizationQueueSink.clearQueue(getContext()); SynchronizationCredentials.setHosturl(serverUrlText.getText().toString()); service = new GpodnetService(AntennapodHttpClient.getHttpClient(), - SynchronizationCredentials.getHosturl(), SynchronizationCredentials.getDeviceID(), + SynchronizationCredentials.getHosturl(), SynchronizationCredentials.getDeviceId(), SynchronizationCredentials.getUsername(), SynchronizationCredentials.getPassword()); getDialog().setTitle(SynchronizationCredentials.getHosturl()); advance(); @@ -258,7 +260,7 @@ public class GpodderAuthenticationFragment extends DialogFragment { SynchronizationSettings.setSelectedSyncProvider(SynchronizationProviderViewData.GPODDER_NET); SynchronizationCredentials.setUsername(username); SynchronizationCredentials.setPassword(password); - SynchronizationCredentials.setDeviceID(selectedDevice.getId()); + SynchronizationCredentials.setDeviceId(selectedDevice.getId()); setupFinishView(view); } } diff --git a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/NextcloudAuthenticationFragment.java b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/NextcloudAuthenticationFragment.java index b73ee2453..5c0f22d88 100644 --- a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/NextcloudAuthenticationFragment.java +++ b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/NextcloudAuthenticationFragment.java @@ -8,9 +8,10 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.google.android.material.dialog.MaterialAlertDialogBuilder; import androidx.fragment.app.DialogFragment; +import de.danoeh.antennapod.core.sync.queue.SynchronizationQueueSink; import de.danoeh.antennapod.net.common.AntennapodHttpClient; import de.danoeh.antennapod.core.sync.SyncService; -import de.danoeh.antennapod.core.sync.SynchronizationCredentials; +import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import de.danoeh.antennapod.core.sync.SynchronizationProviderViewData; import de.danoeh.antennapod.core.sync.SynchronizationSettings; import de.danoeh.antennapod.net.sync.nextcloud.NextcloudLoginFlow; @@ -88,7 +89,8 @@ public class NextcloudAuthenticationFragment extends DialogFragment @Override public void onNextcloudAuthenticated(String server, String username, String password) { SynchronizationSettings.setSelectedSyncProvider(SynchronizationProviderViewData.NEXTCLOUD_GPODDER); - SynchronizationCredentials.clear(getContext()); + SynchronizationCredentials.clear(); + SynchronizationQueueSink.clearQueue(getContext()); SynchronizationCredentials.setPassword(password); SynchronizationCredentials.setHosturl(server); SynchronizationCredentials.setUsername(username); diff --git a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/SynchronizationPreferencesFragment.java b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/SynchronizationPreferencesFragment.java index 3c6461272..e8428dd5c 100644 --- a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/SynchronizationPreferencesFragment.java +++ b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/SynchronizationPreferencesFragment.java @@ -21,13 +21,14 @@ import androidx.preference.PreferenceFragmentCompat; import com.google.android.material.snackbar.Snackbar; +import de.danoeh.antennapod.core.sync.queue.SynchronizationQueueSink; import de.danoeh.antennapod.ui.preferences.R; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import de.danoeh.antennapod.event.SyncServiceEvent; -import de.danoeh.antennapod.core.sync.SynchronizationCredentials; +import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import de.danoeh.antennapod.core.sync.SyncService; import de.danoeh.antennapod.core.sync.SynchronizationProviderViewData; import de.danoeh.antennapod.core.sync.SynchronizationSettings; @@ -100,7 +101,8 @@ public class SynchronizationPreferencesFragment extends PreferenceFragmentCompat return true; }); findPreference(PREFERENCE_LOGOUT).setOnPreferenceClickListener(preference -> { - SynchronizationCredentials.clear(getContext()); + SynchronizationCredentials.clear(); + SynchronizationQueueSink.clearQueue(getContext()); Snackbar.make(getView(), R.string.pref_synchronization_logout_toast, Snackbar.LENGTH_LONG).show(); SynchronizationSettings.setSelectedSyncProvider(null); updateScreen(); |