From c13b920a60216af6d942cafe6a726fbd8e0aa087 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Mon, 23 Apr 2018 17:35:34 +0300 Subject: [PATCH] Change methods in BaseTravelCard --- .../plus/wikivoyage/explore/travelcards/BaseTravelCard.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/BaseTravelCard.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/BaseTravelCard.java index 64021f2102..8b6a14965f 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/BaseTravelCard.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/BaseTravelCard.java @@ -7,7 +7,6 @@ import android.support.annotation.DrawableRes; import android.support.annotation.NonNull; import android.support.v4.content.ContextCompat; import android.support.v7.widget.RecyclerView; -import android.view.ViewGroup; import net.osmand.plus.OsmandApplication; import net.osmand.plus.R; @@ -22,10 +21,10 @@ public abstract class BaseTravelCard { this.nightMode = nightMode; } - public abstract RecyclerView.ViewHolder createViewHolder(@NonNull ViewGroup parent); - public abstract void bindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder); + public abstract int getCardType(); + @ColorInt protected int getResolvedColor(@ColorRes int colorId) { return ContextCompat.getColor(app, colorId);