修改转盘,声音会播放两次
This commit is contained in:
@@ -587,6 +587,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
Log.e("isOpenSound===","isOpenSound111"+isOpenSound);
|
Log.e("isOpenSound===","isOpenSound111"+isOpenSound);
|
||||||
if (isOpenSound) {
|
if (isOpenSound) {
|
||||||
// 假设此处有播放音乐的逻辑
|
// 假设此处有播放音乐的逻辑
|
||||||
|
Log.e("isOpenSound===","raw_music.mp");
|
||||||
playSound("draw_music.mp3");
|
playSound("draw_music.mp3");
|
||||||
// isOpenSound=false;
|
// isOpenSound=false;
|
||||||
}
|
}
|
||||||
@@ -639,9 +640,8 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
iterator.remove(); // 安全地移除元素
|
iterator.remove(); // 安全地移除元素
|
||||||
finishTargetArrayIndex.add(index);
|
finishTargetArrayIndex.add(index);
|
||||||
foundTarget = true;
|
foundTarget = true;
|
||||||
if (isOpenSound) {
|
stopPlay();
|
||||||
playSound("xuanz.mp3");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -650,7 +650,6 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
MvpPre.giftSend(blind_box_turntable_id);
|
MvpPre.giftSend(blind_box_turntable_id);
|
||||||
MvpPre.wallet();
|
MvpPre.wallet();
|
||||||
isDrawing = false;
|
isDrawing = false;
|
||||||
// stopPlay();
|
|
||||||
stopFastAnimate();
|
stopFastAnimate();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -883,6 +882,10 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
if (isOpenSpecial) {
|
if (isOpenSpecial) {
|
||||||
Log.e("isOpenSound===","isOpenSound333"+isOpenSound);
|
Log.e("isOpenSound===","isOpenSound333"+isOpenSound);
|
||||||
startFastAnimate();
|
startFastAnimate();
|
||||||
|
}else{
|
||||||
|
if(isOpenSound){
|
||||||
|
playSound("xuanz.mp3");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user