This commit is contained in:
kunfei
2023-12-07 16:04:53 +08:00
parent baeef2179d
commit 9806cfeda6
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -50,10 +50,10 @@ class App : Application() {
//预下载Cronet so
Cronet.preDownload()
createNotificationChannels()
applyDayNight(this)
LiveEventBus.config()
.lifecycleObserverAlwaysActive(true)
.autoClear(false)
applyDayNight(this)
registerActivityLifecycleCallbacks(LifecycleHelp)
defaultSharedPreferences.registerOnSharedPreferenceChangeListener(AppConfig)
DefaultData.upVersion()
@@ -16,6 +16,7 @@ object IntentHelp {
fun getBrowserIntent(uri: Uri): Intent {
val intent = Intent(Intent.ACTION_VIEW)
intent.`package` = appCtx.packageName
intent.data = uri
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (intent.resolveActivity(appCtx.packageManager) == null) {