diff --git a/feature/floating-window/src/main/java/com/gh/gamecenter/floatingwindow/HaloApp.kt b/feature/floating-window/src/main/java/com/gh/gamecenter/floatingwindow/HaloApp.kt index 9d3930b808..fa192d35dc 100644 --- a/feature/floating-window/src/main/java/com/gh/gamecenter/floatingwindow/HaloApp.kt +++ b/feature/floating-window/src/main/java/com/gh/gamecenter/floatingwindow/HaloApp.kt @@ -1,6 +1,7 @@ package com.gh.gamecenter.floatingwindow import android.app.Application +import android.content.Context import android.content.res.Configuration import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -8,7 +9,7 @@ import com.google.auto.service.AutoService @AutoService(IApplication::class) class HaloApp : IApplication { - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { // Do nothing } diff --git a/feature/jg_push/src/main/java/com/gh/gamecenter/jg/push/HaloApp.kt b/feature/jg_push/src/main/java/com/gh/gamecenter/jg/push/HaloApp.kt index 4d02d98a19..e3530c1a85 100644 --- a/feature/jg_push/src/main/java/com/gh/gamecenter/jg/push/HaloApp.kt +++ b/feature/jg_push/src/main/java/com/gh/gamecenter/jg/push/HaloApp.kt @@ -1,6 +1,7 @@ package com.gh.gamecenter.jg.push import android.app.Application +import android.content.Context import android.content.res.Configuration import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -8,7 +9,7 @@ import com.google.auto.service.AutoService @AutoService(IApplication::class) class HaloApp : IApplication { - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { // Do nothing } diff --git a/feature/new_feedback/src/main/java/com/gh/gamecenter/feedback/HaloApp.kt b/feature/new_feedback/src/main/java/com/gh/gamecenter/feedback/HaloApp.kt index 2c828ff373..0cb9027b18 100644 --- a/feature/new_feedback/src/main/java/com/gh/gamecenter/feedback/HaloApp.kt +++ b/feature/new_feedback/src/main/java/com/gh/gamecenter/feedback/HaloApp.kt @@ -1,6 +1,7 @@ package com.gh.gamecenter.feedback import android.app.Application +import android.content.Context import android.content.res.Configuration import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -8,7 +9,7 @@ import com.google.auto.service.AutoService @AutoService(IApplication::class) class HaloApp : IApplication { - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { // Do nothing } diff --git a/feature/oaid/src/main/java/com/gh/gamecenter/oaid/HaloApp.kt b/feature/oaid/src/main/java/com/gh/gamecenter/oaid/HaloApp.kt index 69badc0c5a..3f3912b391 100644 --- a/feature/oaid/src/main/java/com/gh/gamecenter/oaid/HaloApp.kt +++ b/feature/oaid/src/main/java/com/gh/gamecenter/oaid/HaloApp.kt @@ -1,6 +1,7 @@ package com.gh.gamecenter.oaid import android.app.Application +import android.content.Context import android.content.res.Configuration import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -8,7 +9,7 @@ import com.google.auto.service.AutoService @AutoService(IApplication::class) class HaloApp : IApplication { - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { } diff --git a/feature/pkg/src/main/java/com/gh/gamecenter/pkg/HaloApp.kt b/feature/pkg/src/main/java/com/gh/gamecenter/pkg/HaloApp.kt index d53e9c0c2a..75c16f3fd2 100644 --- a/feature/pkg/src/main/java/com/gh/gamecenter/pkg/HaloApp.kt +++ b/feature/pkg/src/main/java/com/gh/gamecenter/pkg/HaloApp.kt @@ -1,6 +1,7 @@ package com.gh.gamecenter.pkg import android.app.Application +import android.content.Context import android.content.res.Configuration import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -8,7 +9,7 @@ import com.google.auto.service.AutoService @AutoService(IApplication::class) class HaloApp : IApplication { - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { // Do nothing } diff --git a/feature/qq_game/src/main/java/com/gh/gamecenter/qqmini/HaloApp.kt b/feature/qq_game/src/main/java/com/gh/gamecenter/qqmini/HaloApp.kt index ed881320cc..7e3b32030e 100644 --- a/feature/qq_game/src/main/java/com/gh/gamecenter/qqmini/HaloApp.kt +++ b/feature/qq_game/src/main/java/com/gh/gamecenter/qqmini/HaloApp.kt @@ -1,7 +1,9 @@ package com.gh.gamecenter.qqmini import android.app.Application +import android.content.Context import android.content.res.Configuration +import com.gh.gamecenter.common.utils.doOnMainProcessOnly import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -12,13 +14,15 @@ class HaloApp : IApplication { lateinit var INSTANCE: Application } - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { } override fun onCreate(application: Application) { INSTANCE = application - MiniGameWebViewUtils.handleWebViewDir(application) + doOnMainProcessOnly { + MiniGameWebViewUtils.handleWebViewDir(application) + } } diff --git a/module_message/src/main/java/com/gh/gamecenter/message/HaloApp.kt b/module_message/src/main/java/com/gh/gamecenter/message/HaloApp.kt index c5b2d4887d..de53c53fd7 100644 --- a/module_message/src/main/java/com/gh/gamecenter/message/HaloApp.kt +++ b/module_message/src/main/java/com/gh/gamecenter/message/HaloApp.kt @@ -1,6 +1,7 @@ package com.gh.gamecenter.message import android.app.Application +import android.content.Context import android.content.res.Configuration import com.gh.gamecenter.core.iinterface.IApplication import com.google.auto.service.AutoService @@ -8,7 +9,7 @@ import com.google.auto.service.AutoService @AutoService(IApplication::class) class HaloApp : IApplication { - override fun attachBaseContext() { + override fun attachBaseContext(base: Context) { // Do nothing }