diff options
author | ByteHamster <info@bytehamster.com> | 2021-02-26 11:10:00 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-02-26 11:10:00 +0100 |
commit | cc3e0c38d2796aa213cf62d07bafe7e413b28388 (patch) | |
tree | db1957b1b09b08f32d213e5146348fdae3d20af2 /core | |
parent | 39f9796656ae9b37e995af8da2977fd16746bfda (diff) | |
download | AntennaPod-cc3e0c38d2796aa213cf62d07bafe7e413b28388.zip |
Removed DbWriter dependency from model
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/feed/Feed.java | 5 | ||||
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/feed/FeedPreferences.java | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/Feed.java b/core/src/main/java/de/danoeh/antennapod/core/feed/Feed.java index 51138e407..da946cf0b 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/feed/Feed.java +++ b/core/src/main/java/de/danoeh/antennapod/core/feed/Feed.java @@ -9,7 +9,6 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; -import de.danoeh.antennapod.core.storage.DBWriter; import de.danoeh.antennapod.core.storage.PodDBAdapter; import de.danoeh.antennapod.core.util.SortOrder; @@ -478,10 +477,6 @@ public class Feed extends FeedFile { return preferences; } - public void savePreferences() { - DBWriter.setFeedPreferences(preferences); - } - @Override public void setId(long id) { super.setId(id); diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedPreferences.java b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedPreferences.java index 21474db89..93efed7e1 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedPreferences.java +++ b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedPreferences.java @@ -1,12 +1,10 @@ package de.danoeh.antennapod.core.feed; -import android.content.Context; import android.database.Cursor; import androidx.annotation.NonNull; import android.text.TextUtils; import de.danoeh.antennapod.core.preferences.UserPreferences; -import de.danoeh.antennapod.core.storage.DBWriter; import de.danoeh.antennapod.core.storage.PodDBAdapter; /** @@ -202,10 +200,6 @@ public class FeedPreferences { } } - public void save(Context context) { - DBWriter.setFeedPreferences(this); - } - public String getUsername() { return username; } |