From b995f39206298f23e510435cc76b873780c09189 Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 28 Mar 2020 14:19:42 +0100 Subject: [PATCH] add upload date on stream grid items fixes #3175 --- .../info_list/holder/StreamGridInfoItemHolder.java | 2 +- .../info_list/holder/StreamInfoItemHolder.java | 6 +++++- app/src/main/res/layout/list_stream_grid_item.xml | 13 +++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamGridInfoItemHolder.java b/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamGridInfoItemHolder.java index a2e585857..78bdfeaac 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamGridInfoItemHolder.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamGridInfoItemHolder.java @@ -5,7 +5,7 @@ import android.view.ViewGroup; import org.schabi.newpipe.R; import org.schabi.newpipe.info_list.InfoItemBuilder; -public class StreamGridInfoItemHolder extends StreamMiniInfoItemHolder { +public class StreamGridInfoItemHolder extends StreamInfoItemHolder { public StreamGridInfoItemHolder(InfoItemBuilder infoItemBuilder, ViewGroup parent) { super(infoItemBuilder, R.layout.list_stream_grid_item, parent); diff --git a/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamInfoItemHolder.java b/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamInfoItemHolder.java index 1dfbbca3f..8f715c6c0 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamInfoItemHolder.java +++ b/app/src/main/java/org/schabi/newpipe/info_list/holder/StreamInfoItemHolder.java @@ -40,7 +40,11 @@ public class StreamInfoItemHolder extends StreamMiniInfoItemHolder { public final TextView itemAdditionalDetails; public StreamInfoItemHolder(InfoItemBuilder infoItemBuilder, ViewGroup parent) { - super(infoItemBuilder, R.layout.list_stream_item, parent); + this(infoItemBuilder, R.layout.list_stream_item, parent); + } + + public StreamInfoItemHolder(InfoItemBuilder infoItemBuilder, int layoutId, ViewGroup parent) { + super(infoItemBuilder, layoutId, parent); itemAdditionalDetails = itemView.findViewById(R.id.itemAdditionalDetails); } diff --git a/app/src/main/res/layout/list_stream_grid_item.xml b/app/src/main/res/layout/list_stream_grid_item.xml index fc9235e8d..2850c6125 100644 --- a/app/src/main/res/layout/list_stream_grid_item.xml +++ b/app/src/main/res/layout/list_stream_grid_item.xml @@ -67,6 +67,19 @@ android:textSize="@dimen/video_item_search_uploader_text_size" tools:text="Uploader"/> + +