1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-06-02 10:42:11 +00:00

VideoDetailFragment: Forcefully catch click events uncaught by children

Because otherwise they will be caught by underlying view and
"click through" will happen. Workaround for #5600
This commit is contained in:
Yevhen Babiichuk (DustDFG)
2026-02-06 19:03:01 +02:00
parent 56a043669a
commit 5e1a1989be
@@ -646,6 +646,12 @@ public final class VideoDetailFragment
protected void 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();
setOnLongClickListeners();