Merge pull request #13203 from dustdfg/video_detail_fragment_click_through
VideoDetailFragment: Forcefully catch click events uncaught by children
This commit is contained in:
commit
113345ef89
1 changed files with 6 additions and 0 deletions
|
|
@ -646,6 +646,12 @@ public final class VideoDetailFragment
|
||||||
protected void initListeners() {
|
protected void initListeners() {
|
||||||
super.initListeners();
|
super.initListeners();
|
||||||
|
|
||||||
|
// Workaround for #5600
|
||||||
|
// Forcefully catch click events uncaught by children because otherwise
|
||||||
|
// they will be caught by underlying view and "click through" will happen
|
||||||
|
binding.getRoot().setOnClickListener(v -> { });
|
||||||
|
binding.getRoot().setOnLongClickListener(v -> true);
|
||||||
|
|
||||||
setOnClickListeners();
|
setOnClickListeners();
|
||||||
setOnLongClickListeners();
|
setOnLongClickListeners();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue