Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SafeViewPager to fix touch exception in MediaPreviewActivity #1166

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

bemusementpark
Copy link

The old ViewPager doesn't behave well with zoom and scale gesture detection in its child views.

SafeViewPager catches and ignores exceptions thrown when ViewPager would retrieve position of stale or non-existent touches.

We could have alternatively used ViewPager2 or RecyclerView but that would be an extensive refactor and may involve refactoring CursorAdapters to be RecyclerView.Adapters.

@hjubb hjubb merged commit 716fc1f into oxen-io:dev Apr 26, 2023
@bemusementpark bemusementpark deleted the fix-media-touch-exception branch May 5, 2023 01:40
@mpretty-cyro mpretty-cyro mentioned this pull request Jun 5, 2023
burtonemily pushed a commit to burtonemily/session-android that referenced this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants