diff options
author | TacoTheDank <SkytkRSfan3895@gmail.com> | 2021-12-12 14:56:31 -0500 |
---|---|---|
committer | TacoTheDank <SkytkRSfan3895@gmail.com> | 2021-12-12 14:56:31 -0500 |
commit | ca7f2d2d3d61ebc43a1f9d190f0aa720c5bd51d7 (patch) | |
tree | dc67a66136c47286fdd2e05b0cd95896b9b23cac /net/sync | |
parent | d4769620b74458ba355b2ae72717dca7caa0f132 (diff) | |
download | AntennaPod-ca7f2d2d3d61ebc43a1f9d190f0aa720c5bd51d7.zip |
Remove no longer needed compat methods
Diffstat (limited to 'net/sync')
-rw-r--r-- | net/sync/model/build.gradle | 1 | ||||
-rw-r--r-- | net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/net/sync/model/build.gradle b/net/sync/model/build.gradle index e47040892..72d962536 100644 --- a/net/sync/model/build.gradle +++ b/net/sync/model/build.gradle @@ -5,5 +5,4 @@ dependencies { implementation project(':model') annotationProcessor "androidx.annotation:annotation:$annotationVersion" - implementation "androidx.appcompat:appcompat:$appcompatVersion" } diff --git a/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java b/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java index da398d83e..42fbdb310 100644 --- a/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java +++ b/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java @@ -4,7 +4,6 @@ import android.text.TextUtils; import android.util.Log; import androidx.annotation.NonNull; -import androidx.core.util.ObjectsCompat; import org.json.JSONException; import org.json.JSONObject; @@ -13,6 +12,7 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; +import java.util.Objects; import java.util.TimeZone; import de.danoeh.antennapod.model.feed.FeedItem; @@ -159,10 +159,10 @@ public class EpisodeAction { && position == that.position && total == that.total && action != that.action - && ObjectsCompat.equals(podcast, that.podcast) - && ObjectsCompat.equals(episode, that.episode) - && ObjectsCompat.equals(timestamp, that.timestamp) - && ObjectsCompat.equals(guid, that.guid); + && Objects.equals(podcast, that.podcast) + && Objects.equals(episode, that.episode) + && Objects.equals(timestamp, that.timestamp) + && Objects.equals(guid, that.guid); } @Override |