mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Fix crash in media preview when scrolling and receiving new media.
This commit is contained in:
committed by
Greyson Parrelli
parent
11221315e4
commit
4275877b47
@@ -42,4 +42,14 @@ public class HackyViewPager extends ViewPager {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent ev) {
|
||||
try {
|
||||
return super.onTouchEvent(ev);
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
Log.w(TAG, e);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user