From 5006b8414e899a38456cedb499f5c0eae9d56999 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Tue, 15 Nov 2022 13:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/views/weight/LiveFloatView.java | 17 ++++++++++------- config.gradle | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java b/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java index 33c58db27..47abc6d2a 100644 --- a/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java +++ b/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java @@ -89,14 +89,17 @@ public class LiveFloatView implements Function1 { float videoWidth = param.getInt("EVT_PARAM1", 0); float videoHeight = param.getInt("EVT_PARAM2", 0); Log.e("视频流有", "videoWidth:" + videoWidth + " videoHeight:" + videoHeight); - if (videoWidth > 720) { - cardParams.height = DpUtil.dp2px(130); - cardParams.width = DpUtil.dp2px(230); - } else { - cardParams.height = DpUtil.dp2px(224); - cardParams.width = DpUtil.dp2px(126); + if (mLiveBean.getLandscape() != 1){ + if (videoWidth > 720) { + cardParams.height = DpUtil.dp2px(130); + cardParams.width = DpUtil.dp2px(230); + } else { + cardParams.height = DpUtil.dp2px(224); + cardParams.width = DpUtil.dp2px(126); + } + layout.setLayoutParams(cardParams); } - layout.setLayoutParams(cardParams); + } @Override diff --git a/config.gradle b/config.gradle index 004687049..1115407de 100644 --- a/config.gradle +++ b/config.gradle @@ -25,7 +25,7 @@ ext { baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S", // true表示谷歌支付 false - isGooglePlay : true, + isGooglePlay : false, //是否上报异常日志 isUploadLog : true ]