From 40c5ece181317b77c560d20986bf10f78f8f4c53 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Thu, 23 Jun 2022 01:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BF=AE=E6=94=B9Activity?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=9A=84=E4=BB=A3=E7=A0=81=20=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/video/RecyclerVideoAdapter.java | 5 +- .../ui/video/TaxiPassengerMogoConsultView.kt | 2 - .../passenger/widget/ConsultVideoPlayer.kt | 56 ++++++------------- 3 files changed, 20 insertions(+), 43 deletions(-) diff --git a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/video/RecyclerVideoAdapter.java b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/video/RecyclerVideoAdapter.java index 33e5186b91..1cfb659a75 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/video/RecyclerVideoAdapter.java +++ b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/video/RecyclerVideoAdapter.java @@ -39,7 +39,9 @@ public class RecyclerVideoAdapter extends RecyclerView.Adapter 0) { mTextureViewContainer.removeAllViews() } - saveLocationStatus(context, statusBar, actionBar) var hadNewConstructor = true //切换时关闭非全屏定时器 @@ -281,6 +259,7 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer { ) gsyVideoPlayer = constructor.newInstance(mContext, true) } + this.fullVideoPlayer = gsyVideoPlayer gsyVideoPlayer.id = fullId gsyVideoPlayer.isIfCurrentIsFullscreen = true gsyVideoPlayer.setVideoAllCallBack(mVideoAllCallBack) @@ -303,7 +282,7 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer { width, height ) frameLayout.addView(gsyVideoPlayer, lp) - FullVideoUtils.showOverlayView(context,frameLayout) + FullVideoUtils.showOverlayView(context as Activity,frameLayout) gsyVideoPlayer.visibility = INVISIBLE frameLayout.visibility = INVISIBLE resolveFullVideoShow(context, gsyVideoPlayer, frameLayout) @@ -381,13 +360,10 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer { mVideoAllCallBack.onQuitFullscreen(mOriginUrl, mTitle, this) } mIfCurrentIsFullscreen = false - if (mHideKey) { - CommonUtil.showNavKey(mContext, mSystemUiVisibility) - } - CommonUtil.showSupportActionBar(mContext, mActionBar, mStatusBar) if (fullscreenButton != null) { fullscreenButton.setImageResource(enlargeImageRes) } + this.fullVideoPlayer = null } }