主播开播的时候增加判断是否为链接包

This commit is contained in:
老皮 2024-11-06 14:35:11 +08:00
parent 8a6f1ae9e8
commit b3fb2ebf43

View File

@ -94,19 +94,20 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
public void onViewClicks() { public void onViewClicks() {
boolean isAnchor = IMLoginManager.get(mContext).getUserInfo().anchorUserType(); boolean isAnchor = IMLoginManager.get(mContext).getUserInfo().anchorUserType();
if (isAnchor) { if (isAnchor) {
if (CommonAppConfig.faceSDKDownLoadOrUnZipFailed){ if(CommonAppConfig.IS_GOOGLE_PLAY == 0) {
// 美颜SDK下载或解压失败并且重试三次还是失败提示用户重启 if (CommonAppConfig.faceSDKDownLoadOrUnZipFailed) {
ToastUtil.show(mContext.getResources().getString(R.string.face_sdk_load_failed)); // 美颜SDK下载或解压失败并且重试三次还是失败提示用户重启
return; ToastUtil.show(mContext.getResources().getString(R.string.face_sdk_load_failed));
} return;
}
// 判断美颜SDK是否加载成功 // 判断美颜SDK是否加载成功
if (!CommonAppConfig.faceSDKIsLoadSuceness){ if (!CommonAppConfig.faceSDKIsLoadSuceness) {
ToastUtil.show(mContext.getResources().getString(R.string.wait_face_sdk_load)); ToastUtil.show(mContext.getResources().getString(R.string.wait_face_sdk_load));
return; return;
}
} }
String[] permissions; String[] permissions;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
permissions = new String[]{ permissions = new String[]{