1:修改飘屏问题,在BaseActivity中进行监听
2:修改礼物问题
This commit is contained in:
@@ -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();
|
||||
// }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user