fix(emergency): 完善应急就医群聊功能—急救员邀请+图标显示+头像兜底
- TUICallingViewManager 启用 initInviteUserFunction,急救员通话中显示右上角 + 号邀请按钮 - InputActionSetting 新增 firstAid 字段,setter 同步写入 SP 供跨模块读取 - createEmergencySetting 支持 firstAid 参数,急救员进入群聊时传入 true - TUIGroupChatFragment 右侧抽屉图标仅在 firstAid 为 true 时显示 - GlideEngine 新增 loadImageByDefault 兜底加载方法 - GroupMemberAdapter 头像加载使用兜底图标,修复空 URL 显示异常 - GroupMemberAdapter 修复 administrator 群组的成员过滤逻辑 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
f61d8c90c9
commit
adfa40313a
+12
@@ -3,6 +3,7 @@ package com.tencent.qcloud.tuicore.component.imageEngine.impl;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
import android.text.TextUtils;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
@@ -54,6 +55,17 @@ public class GlideEngine {
|
||||
.into(imageView);
|
||||
}
|
||||
|
||||
public static void loadImageByDefault(ImageView imageView, String filePath) {
|
||||
if (TextUtils.isEmpty(filePath)) {
|
||||
imageView.setImageResource(R.drawable.core_default_user_icon);
|
||||
return;
|
||||
}
|
||||
Glide.with(TUILogin.getAppContext())
|
||||
.load(filePath)
|
||||
.error(R.drawable.core_default_user_icon)
|
||||
.apply(new RequestOptions())
|
||||
.into(imageView);
|
||||
}
|
||||
public static void clear(ImageView imageView) {
|
||||
Glide.with(TUILogin.getAppContext()).clear(imageView);
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user