diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-10-17 23:06:25 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-10-17 23:06:25 +0000 |
commit | c010cb0479bc6914aea7e6231fa86e60a9c237d0 (patch) | |
tree | 240f2890c9e04945f3cf4a3c9e457afd954e7a99 | |
parent | 9e6139881bf8f72936cb1ae5c94f6512042260c7 (diff) | |
download | infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.tar infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.tar.gz infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.tar.bz2 infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.tar.lz infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.tar.xz infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.tar.zst infinity-for-reddit-c010cb0479bc6914aea7e6231fa86e60a9c237d0.zip |
Set ViewPager2 adapter in onCreate in ViewPostDetailActivity.
Diffstat (limited to '')
-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); } |