parent
12760fb010
commit
725656f833
|
|
@ -89,8 +89,8 @@ class MainApplication : Application() {
|
||||||
|
|
||||||
mainApplication.updateNotificationChannels()
|
mainApplication.updateNotificationChannels()
|
||||||
//错误日志上传捕获
|
//错误日志上传捕获
|
||||||
val crashCatchHandler: CrashCatchHandler = CrashCatchHandler.getInstance() //获得单例
|
// val crashCatchHandler: CrashCatchHandler = CrashCatchHandler.getInstance() //获得单例
|
||||||
crashCatchHandler.init(mainApplication) //初始化,传入context
|
// crashCatchHandler.init(mainApplication) //初始化,传入context
|
||||||
if (DeviceID.supportedOAID(mainApplication)) {
|
if (DeviceID.supportedOAID(mainApplication)) {
|
||||||
// 获取OAID/AAID,异步回调
|
// 获取OAID/AAID,异步回调
|
||||||
DeviceID.getOAID(mainApplication, object : IGetter {
|
DeviceID.getOAID(mainApplication, object : IGetter {
|
||||||
|
|
|
||||||
|
|
@ -263,11 +263,6 @@ open class HomeFragment : BaseFragment(), CoroutineScope by CoroutineScope(Dispa
|
||||||
|
|
||||||
}
|
}
|
||||||
tvGlobalMode.setOnClickListener {
|
tvGlobalMode.setOnClickListener {
|
||||||
if (!clashRunning) {
|
|
||||||
RxToast.info(resources.getString(R.string.OpenSwitchingSourceModel))
|
|
||||||
return@setOnClickListener
|
|
||||||
}
|
|
||||||
|
|
||||||
val getIsGlo= MMKV.defaultMMKV().decodeBool(BZYConstants.MMKV_KEY_GLOBAL_MODEL, false)
|
val getIsGlo= MMKV.defaultMMKV().decodeBool(BZYConstants.MMKV_KEY_GLOBAL_MODEL, false)
|
||||||
Log.d("clGlobalModel ==>${getIsGlo}")
|
Log.d("clGlobalModel ==>${getIsGlo}")
|
||||||
if (!getIsGlo) {
|
if (!getIsGlo) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue