1.修改播放礼物特效代码

2:修改从房间进入其他页面出现不能回到房间的问题
This commit is contained in:
2025-09-12 09:08:14 +08:00
parent 1157e8a545
commit 748912d3d1
19 changed files with 1056 additions and 367 deletions

View File

@@ -91,6 +91,23 @@ public class CommonAppContext extends MultiDexApplication {
private final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(1);
private ScheduledExecutorService scheduledExecutorServiceRoom = null;
private MqttConnect mqttConnect=null;
// 添加后台状态标记
private boolean wasInBackground = false;
public void onAppBackground() {
wasInBackground = true;
}
public void onAppForeground() {
wasInBackground = false;
}
public boolean wasInBackground() {
return wasInBackground;
}
@Override
public void onCreate() {
super.onCreate();