Commit 07bb4cdc authored by wanglei's avatar wanglei

...

parent 13124cb9
......@@ -52,14 +52,15 @@ class MyApplication : BaseApplication() {
}
}
fun initApp(isFirst:Boolean=false) {
if (!isFirst){
fun initApp(isFirst: Boolean = false) {
if (!isFirst) {
val topic = ConfigHelper.packageName + "_push"
FCMManager.initFirebase(this)
FCMManager.subscribeToTopic(topic)
LogEx.logDebug(TAG, "topic=${topic}")
ScreenStatusReceiver.setupScreenStatusListener(this)
InstallHelps.init()
initLifeListener()
}
if (ifAgreePrivacy) {
......@@ -77,7 +78,7 @@ class MyApplication : BaseApplication() {
AppPreferences.getInstance().put("gid", gid)
}
}
initLifeListener()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment