1:修改飘屏问题,在BaseActivity中进行监听

2:修改礼物问题
This commit is contained in:
2025-09-06 14:19:23 +08:00
parent 60e2980d89
commit 3b31ba1dea
20 changed files with 616 additions and 153 deletions

View File

@@ -130,7 +130,7 @@ public class CommonAppContext extends MultiDexApplication {
SpUtil.getInstance().setBooleanValue("youth_model_shown", false);
}
}
piaoPingManager = PiaoPingManager.getInstance(this);
// piaoPingManager = PiaoPingManager.getInstance(this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (!Settings.canDrawOverlays(this)) {
@@ -144,7 +144,7 @@ public class CommonAppContext extends MultiDexApplication {
}
private PiaoPingManager piaoPingManager;
// private PiaoPingManager piaoPingManager;
private void initARouter() {
if (true) {
@@ -243,9 +243,9 @@ public class CommonAppContext extends MultiDexApplication {
// 确保在主线程中订阅
if (activity != null && !activity.isFinishing()) {
activity.runOnUiThread(() -> {
if (piaoPingManager != null) {
piaoPingManager.subscribe();
}
// if (piaoPingManager != null) {
// piaoPingManager.subscribe();
// }
});
}
}
@@ -273,9 +273,9 @@ public class CommonAppContext extends MultiDexApplication {
AppLifecycleUtil.onAppBackGround();
if (activity != null && !activity.isFinishing()) {
activity.runOnUiThread(() -> {
if (piaoPingManager != null) {
piaoPingManager.unsubscribe();
}
// if (piaoPingManager != null) {
// piaoPingManager.unsubscribe();
// }
});
}
}