mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-26 13:02:34 +01:00
Fix tapping on video thumbnail does nothing
This commit is contained in:
parent
2a2c82e73b
commit
00a178f7d3
@ -289,6 +289,7 @@ public final class VideoDetailFragment
|
|||||||
|| (currentInfo != null
|
|| (currentInfo != null
|
||||||
&& isAutoplayEnabled()
|
&& isAutoplayEnabled()
|
||||||
&& player.getParentActivity() == null)) {
|
&& player.getParentActivity() == null)) {
|
||||||
|
autoPlayEnabled = true; // forcefully start playing
|
||||||
openVideoPlayer();
|
openVideoPlayer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -521,6 +522,7 @@ public final class VideoDetailFragment
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.detail_thumbnail_root_layout:
|
case R.id.detail_thumbnail_root_layout:
|
||||||
|
autoPlayEnabled = true; // forcefully start playing
|
||||||
openVideoPlayer();
|
openVideoPlayer();
|
||||||
break;
|
break;
|
||||||
case R.id.detail_title_root_layout:
|
case R.id.detail_title_root_layout:
|
||||||
@ -537,6 +539,7 @@ public final class VideoDetailFragment
|
|||||||
player.hideControls(0, 0);
|
player.hideControls(0, 0);
|
||||||
showSystemUi();
|
showSystemUi();
|
||||||
} else {
|
} else {
|
||||||
|
autoPlayEnabled = true; // forcefully start playing
|
||||||
openVideoPlayer();
|
openVideoPlayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user