From e1b1756dd8cfe1b3f3e9ed12ec2719453d248218 Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Wed, 6 May 2020 12:51:10 +0300 Subject: [PATCH] remove position from ContextMenuItem --- OsmAnd/src/net/osmand/plus/ContextMenuItem.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/ContextMenuItem.java b/OsmAnd/src/net/osmand/plus/ContextMenuItem.java index 9863b31e65..a5da0f5308 100644 --- a/OsmAnd/src/net/osmand/plus/ContextMenuItem.java +++ b/OsmAnd/src/net/osmand/plus/ContextMenuItem.java @@ -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); } }