修改转盘,声音会播放两次

This commit is contained in:
joejin0118@163.com
2025-09-14 01:49:32 +08:00
parent ce8f9c57c4
commit 572967ca16

View File

@@ -587,6 +587,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
Log.e("isOpenSound===","isOpenSound111"+isOpenSound);
if (isOpenSound) {
// 假设此处有播放音乐的逻辑
Log.e("isOpenSound===","raw_music.mp");
playSound("draw_music.mp3");
// isOpenSound=false;
}
@@ -639,9 +640,8 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
iterator.remove(); // 安全地移除元素
finishTargetArrayIndex.add(index);
foundTarget = true;
if (isOpenSound) {
playSound("xuanz.mp3");
}
stopPlay();
break;
}
}
@@ -650,7 +650,6 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
MvpPre.giftSend(blind_box_turntable_id);
MvpPre.wallet();
isDrawing = false;
// stopPlay();
stopFastAnimate();
return;
}
@@ -883,6 +882,10 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
if (isOpenSpecial) {
Log.e("isOpenSound===","isOpenSound333"+isOpenSound);
startFastAnimate();
}else{
if(isOpenSound){
playSound("xuanz.mp3");
}
}
}