Navigate to parent(uploader) channel from the uploader section on long click
This commit is contained in:
parent
cc8874b687
commit
b7d4a4f604
1 changed files with 10 additions and 0 deletions
|
@ -474,6 +474,15 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
|
||||||
case R.id.detail_controls_download:
|
case R.id.detail_controls_download:
|
||||||
NavigationHelper.openDownloads(getActivity());
|
NavigationHelper.openDownloads(getActivity());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case R.id.detail_uploader_root_layout:
|
||||||
|
if (TextUtils.isEmpty(currentInfo.getSubChannelUrl())) {
|
||||||
|
Log.w(TAG,
|
||||||
|
"Can't open parent channel because we got no parent channel URL");
|
||||||
|
} else {
|
||||||
|
openChannel(currentInfo.getUploaderUrl(), currentInfo.getUploaderName());
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -568,6 +577,7 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
|
||||||
super.initListeners();
|
super.initListeners();
|
||||||
|
|
||||||
uploaderRootLayout.setOnClickListener(this);
|
uploaderRootLayout.setOnClickListener(this);
|
||||||
|
uploaderRootLayout.setOnLongClickListener(this);
|
||||||
videoTitleRoot.setOnClickListener(this);
|
videoTitleRoot.setOnClickListener(this);
|
||||||
thumbnailBackgroundButton.setOnClickListener(this);
|
thumbnailBackgroundButton.setOnClickListener(this);
|
||||||
detailControlsBackground.setOnClickListener(this);
|
detailControlsBackground.setOnClickListener(this);
|
||||||
|
|
Loading…
Reference in a new issue