diff options
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java | 2 |
1 files changed, 1 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 1e64bf89..27962063 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java @@ -282,6 +282,7 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele }); sectionsPagerAdapter = new SectionsPagerAdapter(this); + binding.viewPager2ViewPostDetailActivity.setAdapter(sectionsPagerAdapter); checkNewAccountAndBindView(savedInstanceState); } @@ -362,7 +363,6 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele } private void bindView(Bundle savedInstanceState) { - binding.viewPager2ViewPostDetailActivity.setAdapter(sectionsPagerAdapter); if (savedInstanceState == null) { binding.viewPager2ViewPostDetailActivity.setCurrentItem(getIntent().getIntExtra(EXTRA_POST_LIST_POSITION, 0), false); } |