适配返回数据+1

This commit is contained in:
renhaoting 2025-12-04 16:56:32 +08:00
parent 2e2f37c586
commit b8d848e0bf
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
fun loadVideo() {
if (null == mPlayerView) {
mPlayerView = YouTubePlayerView(requireContext())
binding!!.playerContainer.addView(mPlayerView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
binding!!.playerContainer.addView(mPlayerView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
lifecycle.addObserver(mPlayerView!!)
mPlayerView?.enableAutomaticInitialization = true
}

View File

@ -7,7 +7,7 @@
<FrameLayout
android:id="@+id/player_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"/>
<View