set an OnLongClickListener
This commit is contained in:
parent
1f23c814e5
commit
e34f666b70
|
@ -479,7 +479,6 @@ 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:
|
case R.id.detail_uploader_root_layout:
|
||||||
if (TextUtils.isEmpty(currentInfo.getSubChannelUrl())) {
|
if (TextUtils.isEmpty(currentInfo.getSubChannelUrl())) {
|
||||||
Log.w(TAG,
|
Log.w(TAG,
|
||||||
|
@ -488,6 +487,9 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
|
||||||
openChannel(currentInfo.getUploaderUrl(), currentInfo.getUploaderName());
|
openChannel(currentInfo.getUploaderUrl(), currentInfo.getUploaderName());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case R.id.detail_title_root_layout:
|
||||||
|
copyTitleText();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -583,6 +585,9 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
|
||||||
protected void initListeners() {
|
protected void initListeners() {
|
||||||
super.initListeners();
|
super.initListeners();
|
||||||
|
|
||||||
|
videoTitleRoot.setLongClickable(true);
|
||||||
|
videoTitleRoot.setOnLongClickListener(this);
|
||||||
|
|
||||||
uploaderRootLayout.setOnClickListener(this);
|
uploaderRootLayout.setOnClickListener(this);
|
||||||
uploaderRootLayout.setOnLongClickListener(this);
|
uploaderRootLayout.setOnLongClickListener(this);
|
||||||
videoTitleRoot.setOnClickListener(this);
|
videoTitleRoot.setOnClickListener(this);
|
||||||
|
@ -1422,4 +1427,8 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
|
||||||
animateView(detailPositionView, false, 500);
|
animateView(detailPositionView, false, 500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void copyTitleText() {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue