This commit is contained in:
2025-11-06 11:53:23 +08:00
parent ab86340a1b
commit 8c23465af3
28 changed files with 245 additions and 309 deletions

View File

@@ -7,12 +7,12 @@ plugins {
apply plugin: 'kotlin-android'
android {
compileSdkVersion 30
compileSdk 35
// buildToolsVersion "30.0.3"
namespace "com.tencent.qcloud.tuikit.tuichat"
defaultConfig {
minSdkVersion 19
targetSdkVersion 35
minSdkVersion 24
targetSdk 35
renderscriptSupportModeEnabled false
renderscriptTargetApi 30

View File

@@ -102,7 +102,7 @@ public class TUIC2CChatFragment extends TUIBaseChatFragment {
@Override
public boolean onMenuItemClick(android.view.MenuItem item) {
if ("举报".equals(item.getTitle())) {
ARouter.getInstance().build("/moduleUtil/WebViewActivity").withString("url", "https://vespa.qxyushen.top/h5/web/index.html#/pages/feedback/report?id=?id="+getToken()+"&fromType=1&fromId="+ getUserInfo().getUser_id()).navigation();
ARouter.getInstance().build("/moduleUtil/WebViewActivity").withString("url", "https://vespa.qxyushen.top/h5/web/index.html#/pages/feedback/report?id="+getToken()+"&fromType=1&fromId="+ getUserInfo().getUser_id()).navigation();
return true;
}
return false;

View File

@@ -177,7 +177,7 @@ class VoiceWaveView @JvmOverloads constructor(
}
}
override fun onDraw(canvas: Canvas?) {
override fun onDraw(canvas: Canvas) {
super.onDraw(canvas)
waveList.clear()

View File

@@ -28,6 +28,7 @@ import com.tencent.qcloud.tuikit.tuichat.bean.message.TextMessageBean;
import com.tencent.qcloud.tuikit.tuichat.bean.message.VideoMessageBean;
import com.tencent.qcloud.tuikit.tuichat.config.TUIChatConfigs;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -135,10 +136,9 @@ public class ChatMessageBuilder {
messageBean.setImgWidth(bitmap.getWidth());
messageBean.setImgHeight(bitmap.getHeight());
mmr.release();
} catch (Exception ex) {
TUIChatLog.e(TAG, "MediaMetadataRetriever exception " + ex);
} finally {
mmr.release();
}
return messageBean;
}
@@ -168,7 +168,11 @@ public class ChatMessageBuilder {
} catch (Exception ex) {
TUIChatLog.e(TAG, "MediaMetadataRetriever exception " + ex);
} finally {
mmr.release();
try {
mmr.release();
}catch (IOException e){
TUIChatLog.e(TAG, "MediaMetadataRetriever release exception " + e);
}
}
return null;