From b3fb2ebf4304f1d6c4fb1a2d97ce9a499e6e9482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Wed, 6 Nov 2024 14:35:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=92=AD=E5=BC=80=E6=92=AD=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=BA=E9=93=BE=E6=8E=A5=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/main/views/MainHomeViewHolder.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java index 1930d6765..2188dbf98 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java @@ -94,19 +94,20 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder { public void onViewClicks() { boolean isAnchor = IMLoginManager.get(mContext).getUserInfo().anchorUserType(); if (isAnchor) { - if (CommonAppConfig.faceSDKDownLoadOrUnZipFailed){ - // 美颜SDK下载或解压失败并且重试三次还是失败,提示用户重启 - ToastUtil.show(mContext.getResources().getString(R.string.face_sdk_load_failed)); - return; - } + if(CommonAppConfig.IS_GOOGLE_PLAY == 0) { + if (CommonAppConfig.faceSDKDownLoadOrUnZipFailed) { + // 美颜SDK下载或解压失败并且重试三次还是失败,提示用户重启 + ToastUtil.show(mContext.getResources().getString(R.string.face_sdk_load_failed)); + return; + } - // 判断美颜SDK是否加载成功 - if (!CommonAppConfig.faceSDKIsLoadSuceness){ - ToastUtil.show(mContext.getResources().getString(R.string.wait_face_sdk_load)); - return; + // 判断美颜SDK是否加载成功 + if (!CommonAppConfig.faceSDKIsLoadSuceness) { + ToastUtil.show(mContext.getResources().getString(R.string.wait_face_sdk_load)); + return; + } } - String[] permissions; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { permissions = new String[]{