Skip to content

Commit

Permalink
- Release v2.2.0
Browse files Browse the repository at this point in the history
Bug Fix ViewPager Swipe detection
  • Loading branch information
mspider65 committed May 6, 2023
1 parent 699dd46 commit eb06452
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected void onCreate(Bundle savedInstanceState) {
mainPagerAdapter = new MainPagerAdapter(this, status);
ViewPager2 viewPager = findViewById(R.id.view_pager);
viewPager.setAdapter(mainPagerAdapter);
viewPager.setOnTouchListener(this);
viewPager.getChildAt(0).setOnTouchListener(this);

viewPager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
@Override
Expand Down

0 comments on commit eb06452

Please sign in to comment.