Use ViewHolder in item click event

This commit is contained in:
Adrian Ulrich committed 2018-11-12 18:13:57 +01:00
1 parent 72710df2c1
commit c112925890
1 file changed
+2 -1
@@ -287,7 +287,8 @@ public class PlaylistActivity extends Activity
if (!mEditing && mDefaultAction != LibraryActivity.ACTION_DO_NOTHING) {
// A DSLV row was clicked, but we need to get the DraggableRow class.
final View target = ((ViewGroup)view).getChildAt(0);
performAction(mDefaultAction, position, (Long)target.getTag());
final ViewHolder holder = (ViewHolder)target.getTag();
performAction(mDefaultAction, position, holder.id);
}
}