elgg.import("AlGui") import "irene.window.algui.AlGuiData" import "irene.window.algui.AlGuiSoundEffect" import "irene.window.algui.AlGuiWindowView" local Inform = nil local function initNotifyInUiThread() if AlGuiBubbleNotification.bn then Inform = AlGuiBubbleNotification.newInform(context) else Inform = AlGuiBubbleNotification.Inform(context) end end local function initNotify() if Inform then return end luajava.runOnUiThread(initNotifyInUiThread) gg.sleep(100) end initNotify() -- 只保留绿色成功通知 luajava.runOnUiThread(function() if Inform then Inform.showSuccessNotification_Simplicity(null, "开启成功", "🎉开启成功", 2000) end end)