tongmengxiao 4 months ago
parent
commit
df01288aa9

+ 1 - 0
baseswago/src/main/java/com/swago/baseswago/model/im/UserJoinRoomBean.java

@@ -32,6 +32,7 @@ public class UserJoinRoomBean implements IRoomChat {
     public String androidJoinSpecial="";
     public String androidHeadSpecial="";
     public String androidBadgeSpecial="";
+    public String androidChatSpecial="";
     public String iosChatSpecial="";
 
     @NonNull

+ 1 - 1
baseswago/src/main/res/values/strings.xml

@@ -375,7 +375,7 @@
     <string name="entrance_effects">Entrance effects</string>
     <string name="avatar_frame">Avatar frame</string>
     <string name="badge">Badge</string>
-    <string name="chat_bubble">chat bubble</string>
+    <string name="chat_bubble">Chat Bubble</string>
     <string name="more">more</string>
     <string name="take_back">take back</string>
     <string name="this_product_has_been_purchased">This product has been purchased</string>

+ 10 - 0
room/src/main/java/com/swago/room/adapter/RoomChatAdapter.kt

@@ -463,6 +463,16 @@ class RoomChatAdapter :
                         }
                     }
 
+                    mContext?.let {
+                        if (item is UserJoinRoomBean&&!item.androidChatSpecial.isNullOrEmpty()){
+                            DianJiuUtil.loadDian9Tu(it ,item.androidChatSpecial ){ drawable ->
+                                drawable?.let { drawable ->
+                                    tvContent.background = drawable
+                                }
+                            }
+                        }
+                    }
+
                 }
             }
 

+ 12 - 0
room/src/main/java/com/swago/room/manager/JoinRoomManager.kt

@@ -205,6 +205,18 @@ class JoinRoomManager : IRoomActiveListener {
                     })
 
                 }
+                if (!userJoinRoomBean.androidHeadSpecial.isNullOrEmpty()) {
+                    svgParser?.decodeFromURL(URL(userJoinRoomBean.androidHeadSpecial), object :SVGAParser.ParseCompletion{
+                        override fun onComplete(videoItem: SVGAVideoEntity) {
+                            val drawable = SVGADrawable(videoItem)
+                            svgaAvatar?.setImageDrawable(drawable)
+                            svgaAvatar?.startAnimation()
+                        }
+
+                        override fun onError() {
+                        }
+                    })
+                }
             }
         }
     }

+ 1 - 1
user/src/main/java/com/swago/user/store/StoreItemAdapter.kt

@@ -25,7 +25,7 @@ class StoreItemAdapter(private val type: Int) : BaseQuickAdapter<StoreItemBean,
                         }
                         2 ->{
                             setVisible(R.id.tvUsing , true)
-                            setText(R.id.tvUsing, R.string.using)
+                            setText(R.id.tvUsing, R.string.already_owned)
                         }
                         else -> {
                             setVisible(R.id.tvUsing , false)