Merge pull request #11103 from osmandapp/Icons-in-Configure-Map
Icons in Configure Map / Screen
This commit is contained in:
commit
5f5c315955
1 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,7 @@ import androidx.annotation.LayoutRes;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.annotation.StringRes;
|
import androidx.annotation.StringRes;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
|
|
||||||
import net.osmand.plus.ContextMenuAdapter.OnItemDeleteAction;
|
import net.osmand.plus.ContextMenuAdapter.OnItemDeleteAction;
|
||||||
|
|
||||||
public class ContextMenuItem {
|
public class ContextMenuItem {
|
||||||
|
@ -164,7 +165,9 @@ public class ContextMenuItem {
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OnItemDeleteAction getItemDeleteAction() { return itemDeleteAction; }
|
public OnItemDeleteAction getItemDeleteAction() {
|
||||||
|
return itemDeleteAction;
|
||||||
|
}
|
||||||
|
|
||||||
public ContextMenuAdapter.ItemClickListener getItemClickListener() {
|
public ContextMenuAdapter.ItemClickListener getItemClickListener() {
|
||||||
return itemClickListener;
|
return itemClickListener;
|
||||||
|
@ -207,9 +210,7 @@ public class ContextMenuItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setColor(Context context, @ColorRes int colorRes) {
|
public void setColor(Context context, @ColorRes int colorRes) {
|
||||||
if (colorRes != INVALID_ID) {
|
color = colorRes != INVALID_ID ? ContextCompat.getColor(context, colorRes) : null;
|
||||||
this.color = ContextCompat.getColor(context, colorRes);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSelected(boolean selected) {
|
public void setSelected(boolean selected) {
|
||||||
|
|
Loading…
Reference in a new issue