diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-03-01 06:55:48 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-03-01 06:55:48 +0000 |
commit | b9bda129cc321fb8d3c0c120ff70f1721da7a9ca (patch) | |
tree | 156d0d8cf1ce8f17f836223cdbc299b9db0e7527 /app | |
parent | c2b6066c7ec68a9f1d7e72a24d5bfb22c5461e3c (diff) | |
download | infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.tar infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.tar.gz infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.tar.bz2 infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.tar.lz infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.tar.xz infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.tar.zst infinity-for-reddit-b9bda129cc321fb8d3c0c120ff70f1721da7a9ca.zip |
Fix single comment id and message id not passing to ViewPostDetailFragment.
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java index bda02b54..9cd7c229 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java @@ -162,7 +162,6 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele EventBus.getDefault().post(new NeedForPostListFromPostFragmentEvent(postFragmentId)); } - fragmentManager = getSupportFragmentManager(); if (savedInstanceState == null) { @@ -426,6 +425,8 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele if (postListPosition == position && post != null) { bundle.putParcelable(ViewPostDetailFragment.EXTRA_POST_DATA, post); bundle.putInt(ViewPostDetailFragment.EXTRA_POST_LIST_POSITION, position); + bundle.putString(ViewPostDetailFragment.EXTRA_SINGLE_COMMENT_ID, getIntent().getStringExtra(EXTRA_SINGLE_COMMENT_ID)); + bundle.putString(ViewPostDetailFragment.EXTRA_MESSAGE_FULLNAME, getIntent().getStringExtra(EXTRA_MESSAGE_FULLNAME)); } else { bundle.putParcelable(ViewPostDetailFragment.EXTRA_POST_DATA, posts.get(position)); bundle.putInt(ViewPostDetailFragment.EXTRA_POST_LIST_POSITION, position); @@ -437,6 +438,8 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele bundle.putParcelable(ViewPostDetailFragment.EXTRA_POST_DATA, post); bundle.putInt(ViewPostDetailFragment.EXTRA_POST_LIST_POSITION, position); } + bundle.putString(ViewPostDetailFragment.EXTRA_SINGLE_COMMENT_ID, getIntent().getStringExtra(EXTRA_SINGLE_COMMENT_ID)); + bundle.putString(ViewPostDetailFragment.EXTRA_MESSAGE_FULLNAME, getIntent().getStringExtra(EXTRA_MESSAGE_FULLNAME)); } fragment.setArguments(bundle); return fragment; |