set an OnLongClickListener

This commit is contained in:
adinilfeld 2020-06-10 14:11:06 -07:00
parent 1f23c814e5
commit e34f666b70
1 changed files with 10 additions and 1 deletions

View File

@ -479,7 +479,6 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
case R.id.detail_controls_download:
NavigationHelper.openDownloads(getActivity());
break;
case R.id.detail_uploader_root_layout:
if (TextUtils.isEmpty(currentInfo.getSubChannelUrl())) {
Log.w(TAG,
@ -488,6 +487,9 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
openChannel(currentInfo.getUploaderUrl(), currentInfo.getUploaderName());
}
break;
case R.id.detail_title_root_layout:
copyTitleText();
break;
}
return true;
@ -583,6 +585,9 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
protected void initListeners() {
super.initListeners();
videoTitleRoot.setLongClickable(true);
videoTitleRoot.setOnLongClickListener(this);
uploaderRootLayout.setOnClickListener(this);
uploaderRootLayout.setOnLongClickListener(this);
videoTitleRoot.setOnClickListener(this);
@ -1422,4 +1427,8 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
animateView(detailPositionView, false, 500);
});
}
private void copyTitleText() {
}
}