Skip to content

Commit

Permalink
added long click listener to treeview and folder structure example
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasberwig committed Sep 1, 2015
1 parent 185fb1c commit 125033b
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,9 @@ public void onClick(View v) {
@Override
public boolean onLongClick(View view) {
if (n.getLongClickListener() != null) {
n.getLongClickListener().onLongClick(n, n.getValue());
return true;
return n.getLongClickListener().onLongClick(n, n.getValue());
} else if (nodeLongClickListener != null) {
nodeLongClickListener.onLongClick(n, n.getValue());
return true;
return nodeLongClickListener.onLongClick(n, n.getValue());
}
return false;
}
Expand Down

0 comments on commit 125033b

Please sign in to comment.