Probably fix duplicate posts problem.

This commit is contained in:
Alex Ning 2020-06-17 17:49:56 +08:00
parent dc550f1e18
commit 513d926770
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -533,4 +533,9 @@ public class Post implements Parcelable {
}
return ((Post) obj).id.equals(id);
}
@Override
public int hashCode() {
return id.hashCode();
}
}