fix:修复幸运礼物重复动效(去掉本地自己播的一个svga)
This commit is contained in:
@@ -296,17 +296,16 @@ public class GiftV2View extends FrameLayout implements GiftEffectView.GiftEffect
|
||||
if (roomInfo != null) {
|
||||
List<GiftReceiver> targetUsers = new ArrayList<>();
|
||||
int totalCoin = 0;
|
||||
|
||||
if (AvRoomDataManager.get().mIsNeedGiftEffect &&
|
||||
!AvRoomDataManager.get().isSelfGamePlaying()) {
|
||||
SVGAImageView imageView = playLuckyBagAnim(svgaUrl);
|
||||
handler.postDelayed(() -> {
|
||||
removeView(imageView);
|
||||
imageView.stopAnimation(true);
|
||||
}, 1800);
|
||||
}
|
||||
|
||||
handler.postDelayed(() -> drawLuckyGiftAnimation(roomInfo, giftReceiveInfos, totalCoin, targetUsers, giftReceiveType, isShowAnimation, pos), 1200);
|
||||
drawLuckyGiftAnimation(roomInfo, giftReceiveInfos, totalCoin, targetUsers, giftReceiveType, isShowAnimation, pos);
|
||||
// if (AvRoomDataManager.get().mIsNeedGiftEffect &&
|
||||
// !AvRoomDataManager.get().isSelfGamePlaying()) {
|
||||
// SVGAImageView imageView = playLuckyBagAnim(svgaUrl);
|
||||
// handler.postDelayed(() -> {
|
||||
// removeView(imageView);
|
||||
// imageView.stopAnimation(true);
|
||||
// }, 1800);
|
||||
// }
|
||||
// handler.postDelayed(() -> drawLuckyGiftAnimation(roomInfo, giftReceiveInfos, totalCoin, targetUsers, giftReceiveType, isShowAnimation, pos), 1200);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user