From 0eb6b68b5cbb90d3928fb5a8fd3e7c3db73692a2 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 17 Oct 2022 10:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E7=BB=93=E6=9D=9F=EF=BC=8C?= =?UTF-8?q?=E6=82=AC=E6=B5=AE=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/views/PortraitLiveManager.java | 5 ++++- live/src/main/res/layout/view_flaot_live.xml | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 2f2fdadfa..1c8021341 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -367,7 +367,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe } if (isQuit) { if (PermissionUtils.checkPermission(mContext)) { - + LiveFloatView.getInstance() + .cacheLiveData(mLiveBean, mLiveType, mLiveSDK, mLiveTypeVal) + .builderSystemFloat(mContext, mLiveBean.getPull()); + mContext.finish(); } else { if (mContext instanceof LiveAudienceActivity) { DialogUitl.showSimpleDialog(mContext, null, "您未打开悬浮窗权限,是否打开", false, new DialogUitl.SimpleCallback3() { diff --git a/live/src/main/res/layout/view_flaot_live.xml b/live/src/main/res/layout/view_flaot_live.xml index c33afb9c1..3c3ef883f 100644 --- a/live/src/main/res/layout/view_flaot_live.xml +++ b/live/src/main/res/layout/view_flaot_live.xml @@ -5,8 +5,9 @@ android:layout_height="wrap_content"> + android:layout_height="match_parent" + android:layout_margin="1dp" />