admin 1 năm trước cách đây
mục cha
commit
1255a7e6bd

+ 3 - 2
room/src/main/java/com/swago/room/giftdandao/GiftDanDaoView.kt

@@ -25,6 +25,7 @@ import com.swago.baseswago.util.AppContext
 import com.swago.baseswago.util.DpPxUtil
 import com.swago.baseswago.util.LogUtil
 import com.swago.baseswago.util.UserInfo
+import com.swago.room.BuildConfig
 import com.swago.room.R
 import com.swago.room.databinding.ViewItemGiftBinding
 import java.io.File
@@ -213,7 +214,7 @@ class GiftDanDaoView : FrameLayout {
                         iv.visibility = View.GONE
                         svgaWinPrize.visibility = View.VISIBLE
                         UserInfo.getUserInfo()?.let {  userInfoModel ->
-                            if (userInfoModel.id == imGiftModel.senderId){
+                            if (userInfoModel.id == imGiftModel.senderId && imGiftModel.giftId.toInt() == 202){
                                 vibrator?.vibrate(2500)
                             }
                         }
@@ -227,7 +228,7 @@ class GiftDanDaoView : FrameLayout {
                         iv.visibility = View.GONE
                         svgaWinPrize.visibility = View.VISIBLE
                         UserInfo.getUserInfo()?.let {  userInfoModel ->
-                            if (userInfoModel.id == imGiftModel.senderId){
+                            if (userInfoModel.id == imGiftModel.senderId && imGiftModel.giftId.toInt() == 202){
                                 vibrator?.vibrate(2500)
                             }
                         }