pull/15/head v1.1.0
Milk 4 years ago
parent 9e49e89e78
commit 191426302e
  1. 5
      app/src/main/java/top/niunaijun/blackdex/app/App.kt
  2. 1
      app/src/main/java/top/niunaijun/blackdex/app/BlackDexLoader.kt
  3. 2
      app/src/main/java/top/niunaijun/blackdex/view/setting/SettingFragment.kt

@ -1,10 +1,9 @@
package top.niunaijun.blackboxa.app package top.niunaijun.blackdex.app
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.app.Application import android.app.Application
import android.content.Context import android.content.Context
import com.umeng.commonsdk.UMConfigure import com.umeng.commonsdk.UMConfigure
import top.niunaijun.blackdex.app.AppManager
/** /**
* *
@ -29,12 +28,12 @@ class App : Application() {
override fun attachBaseContext(base: Context?) { override fun attachBaseContext(base: Context?) {
super.attachBaseContext(base) super.attachBaseContext(base)
mContext = base!! mContext = base!!
UMConfigure.init(base, "60b373136c421a3d97d23c29", "Github", 0, "")
AppManager.doAttachBaseContext(base) AppManager.doAttachBaseContext(base)
} }
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
AppManager.doOnCreate(mContext) AppManager.doOnCreate(mContext)
UMConfigure.init(this, "60b373136c421a3d97d23c29", "Github", UMConfigure.DEVICE_TYPE_PHONE, null)
} }
} }

@ -5,7 +5,6 @@ import top.niunaijun.blackbox.BlackDexCore
import top.niunaijun.blackbox.app.configuration.ClientConfiguration import top.niunaijun.blackbox.app.configuration.ClientConfiguration
import top.niunaijun.blackbox.utils.FileUtils import top.niunaijun.blackbox.utils.FileUtils
import top.niunaijun.blackbox.utils.compat.BuildCompat import top.niunaijun.blackbox.utils.compat.BuildCompat
import top.niunaijun.blackboxa.app.App
import top.niunaijun.blackdex.biz.cache.AppSharedPreferenceDelegate import top.niunaijun.blackdex.biz.cache.AppSharedPreferenceDelegate
import java.io.File import java.io.File

@ -7,7 +7,7 @@ import androidx.preference.PreferenceFragmentCompat
import androidx.preference.SwitchPreferenceCompat import androidx.preference.SwitchPreferenceCompat
import com.afollestad.materialdialogs.MaterialDialog import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.files.folderChooser import com.afollestad.materialdialogs.files.folderChooser
import top.niunaijun.blackboxa.app.App import top.niunaijun.blackdex.app.App
import top.niunaijun.blackdex.R import top.niunaijun.blackdex.R
import top.niunaijun.blackdex.app.AppManager import top.niunaijun.blackdex.app.AppManager
import top.niunaijun.blackdex.app.BlackDexLoader import top.niunaijun.blackdex.app.BlackDexLoader

Loading…
Cancel
Save