Open arvydaszenitech opened 8 years ago
I am too getting same error.
got the solution, change the following function
addOnItemTouchListener(new SwipeableItemClickListener(this,
new OnItemClickListener() {
@Override
public void onItemClick(View view, int position) {
if (view.getId() == R.id.txt_delete) {
touchListener.processPendingDismisses();
} else if (view.getId() == R.id.txt_undo) {
touchListener.undoPendingDismiss();
} else { // R.id.txt_data
Toast.makeText(AlertsActivity.this, "Position " + position, Toast.LENGTH_SHORT).show();
}
}
}) {
@Override
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
}
});
Awesome, it works, thank you very much!
SwipeableItemClickListener should be updated to implement onRequestDisallowInterceptTouchEvent() method. Now it throws java.lang.AbstractMethodError. If anyone faces this problem it can easily be solved by extending SwipeableItemClickListener and implementing onRequestDisallowInterceptTouchEvent()