This commit is contained in:
Dmitriy Prodchenko 2018-04-23 17:42:11 +03:00
commit 64f6e87008

View file

@ -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);