fix
This commit is contained in:
@@ -286,22 +286,27 @@ sheetplayer = {
|
|||||||
sheetplayer.currentNote ++;
|
sheetplayer.currentNote ++;
|
||||||
}
|
}
|
||||||
// 播放完自动下一首
|
// 播放完自动下一首
|
||||||
if(config.values.autoPlay && !(sheetplayer.currentNote < sheetplayer.noteCount) && gui.player_panel.isShowing) {
|
|
||||||
gui.player_panel.__internal_dismiss();
|
if(!(sheetplayer.currentNote < sheetplayer.noteCount)) {
|
||||||
sheetplayer.stop();
|
if(config.values.autoPlay && gui.player_panel.isShowing) {
|
||||||
// gui.main.show(0);
|
gui.player_panel.__internal_dismiss();
|
||||||
if(sheetmgr.cachedLocalSheetList.length>0){
|
sheetplayer.stop();
|
||||||
setTimeout(function(){
|
// gui.main.show(0);
|
||||||
let sheet = sheetmgr.cachedLocalSheetList[random(0, sheetmgr.cachedLocalSheetList.length-1)]
|
if(sheetmgr.cachedLocalSheetList.length>0){
|
||||||
if(!sheet.keyCount){
|
|
||||||
sheet.keyCount = 15 //默认键位
|
|
||||||
}
|
|
||||||
gui.player_panel.__internal_showPanel(sheet);
|
|
||||||
// sheetplayer.stop();
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
sheetplayer.play(gui.player_panel.refreshStatus);
|
let sheet = sheetmgr.cachedLocalSheetList[random(0, sheetmgr.cachedLocalSheetList.length-1)]
|
||||||
}, 1500)
|
if(!sheet.keyCount){
|
||||||
}, 500)
|
sheet.keyCount = 15 //默认键位
|
||||||
|
}
|
||||||
|
gui.player_panel.__internal_showPanel(sheet);
|
||||||
|
// sheetplayer.stop();
|
||||||
|
setTimeout(function(){
|
||||||
|
sheetplayer.play(gui.player_panel.refreshStatus);
|
||||||
|
}, 1500)
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
sheetplayer.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -2031,7 +2036,6 @@ gui = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
gui.run(function(){
|
gui.run(function(){
|
||||||
ui.setContentView((function(){
|
ui.setContentView((function(){
|
||||||
var layout = new android.widget.LinearLayout(ctx);
|
var layout = new android.widget.LinearLayout(ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user