美颜SDK so动态加载
This commit is contained in:
parent
7746111b83
commit
d05c975068
@ -94,6 +94,19 @@ 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;
|
||||
}
|
||||
|
||||
// 判断美颜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[]{
|
||||
|
Loading…
Reference in New Issue
Block a user