summaryrefslogtreecommitdiff
path: root/net/sync/model
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2021-12-14 21:23:52 +0100
committerGitHub <noreply@github.com>2021-12-14 21:23:52 +0100
commit20e8b3ed6c3207ff640d0c2274df9ce69408efc7 (patch)
tree59c488bc952919eece58bf51be1ea4bc35fc8637 /net/sync/model
parent41f6bc7616e08c2ba9a9ec0a30bdfd3235b09921 (diff)
parentca7f2d2d3d61ebc43a1f9d190f0aa720c5bd51d7 (diff)
downloadAntennaPod-20e8b3ed6c3207ff640d0c2274df9ce69408efc7.zip
Merge pull request #5581 from TacoTheDank/remove-old-compat
Remove no longer needed compat methods
Diffstat (limited to 'net/sync/model')
-rw-r--r--net/sync/model/build.gradle1
-rw-r--r--net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java10
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