修改BUG
This commit is contained in:
@@ -109,13 +109,13 @@ public class CommonAppContext extends MultiDexApplication {
|
||||
AgoraManager.getInstance(this).init(currentEnvironment.getSwSdkAppId());
|
||||
MessageListenerSingleton.getInstance();
|
||||
CrashReport.initCrashReport(this, "ac3ed4d89f", true);/*bugly初始化*/
|
||||
// ServiceUtils.startService(MyMqttService.class);/*Mqtt初始化*/
|
||||
// 初始化MQTT服务
|
||||
// 获取单例实例
|
||||
MyMqttService mqttService = MyMqttService.getInstance(this);
|
||||
|
||||
// 启动服务
|
||||
mqttService.startService();
|
||||
// // 启动 MQTT 服务
|
||||
Intent mqttServiceIntent = new Intent(this, MyMqttService.class);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
startForegroundService(mqttServiceIntent);
|
||||
} else {
|
||||
startService(mqttServiceIntent);
|
||||
}
|
||||
|
||||
// 每次启动应用时重置状态
|
||||
SpUtil.getInstance().setBooleanValue("youth_model_shown", false);
|
||||
|
||||
Reference in New Issue
Block a user