feat: 联系人增加头像选择

This commit is contained in:
2026-05-30 04:07:18 +08:00
parent 87903b7216
commit 1c89943459
52 changed files with 1892 additions and 226 deletions

View File

@@ -154,6 +154,21 @@ public class GlideUtils {
.into(imageView);
}
public static void loadImageSafe(@Nullable Context context, int id,
@NonNull ImageView imageView,
@DrawableRes int errorId) {
RequestBuilder<Drawable> requestManager = getSafeRequestManager(context);
if (requestManager == null) {
Logger.w(TAG, "Skip loading image due to invalid context");
return;
}
requestManager
.load(id)
.error(errorId)
.into(imageView);
}
public static void loadImageSafe(@Nullable Context context, @Nullable String url,
@NonNull ImageView imageView,
Drawable drawable) {