Fix crash in media preview when scrolling and receiving new media.

This commit is contained in:
Cody Henthorne
2021-12-16 10:59:27 -05:00
committed by Greyson Parrelli
parent 11221315e4
commit 4275877b47

View File

@@ -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;
}
}
}