aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-06-17 09:49:56 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-06-17 09:49:56 +0000
commit513d92677067207f37248015de193fd0228a1428 (patch)
tree2113eef25cb3e691baacebf913ed7f8b691337a8 /app
parentdc550f1e18de72ce510dfc08c5a0815ee8d72b22 (diff)
downloadinfinity-for-reddit-513d92677067207f37248015de193fd0228a1428.tar
infinity-for-reddit-513d92677067207f37248015de193fd0228a1428.tar.gz
infinity-for-reddit-513d92677067207f37248015de193fd0228a1428.tar.bz2
infinity-for-reddit-513d92677067207f37248015de193fd0228a1428.tar.lz
infinity-for-reddit-513d92677067207f37248015de193fd0228a1428.tar.xz
infinity-for-reddit-513d92677067207f37248015de193fd0228a1428.tar.zst
infinity-for-reddit-513d92677067207f37248015de193fd0228a1428.zip
Probably fix duplicate posts problem.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Post/Post.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java
index 56e01c27..601920d4 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java
@@ -167,8 +167,6 @@ public class ViewVideoActivity extends AppCompatActivity {
mediaDownloader = new MediaDownloaderImpl();
- mediaDownloader = new MediaDownloaderImpl();
-
Intent intent = getIntent();
mVideoUri = intent.getData();
postTitle = intent.getStringExtra(EXTRA_POST_TITLE);
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Post/Post.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Post/Post.java
index 5a60bbdd..3a345572 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Post/Post.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Post/Post.java
@@ -533,4 +533,9 @@ public class Post implements Parcelable {
}
return ((Post) obj).id.equals(id);
}
+
+ @Override
+ public int hashCode() {
+ return id.hashCode();
+ }
}