-Refactored info item and local item click gestures into the same OnClickGesture.
This commit is contained in:
parent
225b43ca3c
commit
1ff8b5fb9f
13 changed files with 38 additions and 50 deletions
|
|
@ -0,0 +1,16 @@
|
|||
package org.schabi.newpipe.util;
|
||||
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
|
||||
public abstract class OnClickGesture<T> {
|
||||
|
||||
public abstract void selected(T selectedItem);
|
||||
|
||||
public void held(T selectedItem) {
|
||||
// Optional gesture
|
||||
}
|
||||
|
||||
public void drag(T selectedItem, RecyclerView.ViewHolder viewHolder) {
|
||||
// Optional gesture
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue