Skip to content

Commit

Permalink
fix: broken select (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruskal authored Nov 29, 2022
1 parent eaaa151 commit 944b6f3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public class CellView extends RelativeLayout implements SelectionsObserver {
contextMenu.add(0, 0, 0, copyString).setOnMenuItemClickListener(handleMenuItemClick);
contextMenu.add(0, 1, 1, expandString).setOnMenuItemClickListener(handleMenuItemClick);
};
setOnCreateContextMenuListener(onCreateContextMenuListener);
addContentView(type);
}

Expand All @@ -92,11 +93,9 @@ private void createContent(String type, DataColumn dataColumn) {

private void addContentView(String type) {
if(type.equals("image")) {
wrapper.setOnCreateContextMenuListener(onCreateContextMenuListener);
this.addView(wrapper, wrapperLayout);
} else {
View contentView = (View) content;
contentView.setOnCreateContextMenuListener(onCreateContextMenuListener);
this.addView(contentView);
}
}
Expand Down

0 comments on commit 944b6f3

Please sign in to comment.