fix background button problem
This commit is contained in:
parent
140b480f82
commit
7257cdacc8
1 changed files with 9 additions and 0 deletions
|
@ -144,6 +144,7 @@ public class VideoItemDetailFragment extends Fragment {
|
||||||
TextView similarTitle = (TextView) activity.findViewById(R.id.detail_similar_title);
|
TextView similarTitle = (TextView) activity.findViewById(R.id.detail_similar_title);
|
||||||
Button backgroundButton = (Button)
|
Button backgroundButton = (Button)
|
||||||
activity.findViewById(R.id.detail_stream_thumbnail_window_background_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);
|
View topView = activity.findViewById(R.id.detailTopView);
|
||||||
Button channelButton = (Button) activity.findViewById(R.id.channel_button);
|
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 != "") {
|
if (info.channel_url != null && info.channel_url != "") {
|
||||||
channelButton.setOnClickListener(new View.OnClickListener() {
|
channelButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue