浏览代码

1.去掉后台保活 尝试修复闪退第二次

huangxiaodong 1 年之前
父节点
当前提交
1692161de6
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      创维盒子/双子星云手机/AppDelegate/AppDelegate.m

+ 5 - 3
创维盒子/双子星云手机/AppDelegate/AppDelegate.m

@@ -85,12 +85,14 @@
     
     
     //启动后台保活
-    [AudioSessionObject shareManager];
+    //[AudioSessionObject shareManager];
     [self MonitorNetworkChangesFun];
     
+#ifdef DEBUG
     [[PLeakSniffer sharedInstance] installLeakSniffer];
-    
-    //[Bugly startWithAppId:@"179559a521"];
+#else
+    [Bugly startWithAppId:@"179559a521"];
+#endif
     
     
     [[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];