From 7257cdacc8e4b30d524a1c8d4d130af3b4299cb9 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 31 Jan 2017 18:23:22 +0100 Subject: [PATCH] fix background button problem --- .../schabi/newpipe/detail/VideoItemDetailFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java b/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java index 8efd549a2..eb75dfa6d 100644 --- a/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java @@ -144,6 +144,7 @@ public class VideoItemDetailFragment extends Fragment { TextView similarTitle = (TextView) activity.findViewById(R.id.detail_similar_title); Button backgroundButton = (Button) activity.findViewById(R.id.detail_stream_thumbnail_window_background_button); + View thumbnailView = activity.findViewById(R.id.detail_thumbnail_view); View topView = activity.findViewById(R.id.detailTopView); Button channelButton = (Button) activity.findViewById(R.id.channel_button); @@ -275,6 +276,14 @@ public class VideoItemDetailFragment extends Fragment { } }); + //todo: make backgroundButton handle this + thumbnailView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + playVideo(info); + } + }); + if (info.channel_url != null && info.channel_url != "") { channelButton.setOnClickListener(new View.OnClickListener() { @Override