remove position from ContextMenuItem
This commit is contained in:
parent
125ede4e5d
commit
e1b1756dd8
1 changed files with 1 additions and 14 deletions
|
@ -31,7 +31,6 @@ public class ContextMenuItem {
|
|||
private final boolean clickable;
|
||||
private final boolean skipPaintingWithoutColor;
|
||||
private boolean hidden;
|
||||
private final int pos;
|
||||
private int order;
|
||||
private String description;
|
||||
private final ContextMenuAdapter.ItemClickListener itemClickListener;
|
||||
|
@ -56,7 +55,6 @@ public class ContextMenuItem {
|
|||
boolean category,
|
||||
boolean clickable,
|
||||
boolean skipPaintingWithoutColor,
|
||||
int pos,
|
||||
int order,
|
||||
String description,
|
||||
ContextMenuAdapter.ItemClickListener itemClickListener,
|
||||
|
@ -80,7 +78,6 @@ public class ContextMenuItem {
|
|||
this.category = category;
|
||||
this.clickable = clickable;
|
||||
this.skipPaintingWithoutColor = skipPaintingWithoutColor;
|
||||
this.pos = pos;
|
||||
this.order = order;
|
||||
this.description = description;
|
||||
this.itemClickListener = itemClickListener;
|
||||
|
@ -161,10 +158,6 @@ public class ContextMenuItem {
|
|||
return hidden;
|
||||
}
|
||||
|
||||
public int getPos() {
|
||||
return pos;
|
||||
}
|
||||
|
||||
public int getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
@ -272,7 +265,6 @@ public class ContextMenuItem {
|
|||
private boolean mLoading = false;
|
||||
private boolean mIsCategory = false;
|
||||
private boolean mIsClickable = true;
|
||||
private int mPosition = -1;
|
||||
private int mOrder = 0;
|
||||
private String mDescription = null;
|
||||
private ContextMenuAdapter.ItemClickListener mItemClickListener = null;
|
||||
|
@ -345,11 +337,6 @@ public class ContextMenuItem {
|
|||
return this;
|
||||
}
|
||||
|
||||
public ItemBuilder setPosition(int position) {
|
||||
mPosition = position;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ItemBuilder setOrder(int order) {
|
||||
mOrder = order;
|
||||
return this;
|
||||
|
@ -417,7 +404,7 @@ public class ContextMenuItem {
|
|||
public ContextMenuItem createItem() {
|
||||
return new ContextMenuItem(mTitleId, mTitle, mIcon, mColorRes, mSecondaryIcon,
|
||||
mSelected, mProgress, mLayout, mLoading, mIsCategory, mIsClickable, mSkipPaintingWithoutColor,
|
||||
mPosition, mOrder, mDescription, mItemClickListener, mIntegerListener, mProgressListener, mItemDeleteAction,
|
||||
mOrder, mDescription, mItemClickListener, mIntegerListener, mProgressListener, mItemDeleteAction,
|
||||
mHideDivider, mHideCompoundButton, mMinHeight, mTag, mId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue