@Override
public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
mIsSingleTap = event.getPointerCount() == 1;
final int index = mSelectedCoverView.getNumber();
if (mIsSingleTap) {
mStartX = event.getX(0);
int lowest,highest;
try {
lowest = mTouchedCovers.first();
highest = mTouchedCovers.last();
} catch (Exception e) {
return true;
}
.
mTouchedCovers.first() throws exception on this case, you have to ignore this touch and wait to the animation to finish so i returned true and exist the method