修复:疑似ResUtils.getString导致FC #426

This commit is contained in:
pppscn 2024-03-09 19:22:11 +08:00
parent 838009b938
commit e5ed94019f
2 changed files with 5 additions and 3 deletions

View File

@ -261,13 +261,13 @@ class App : Application(), CactusCallback, Configuration.Provider by Core {
Core.init(this)
// 配置文件初始化
SharedPreference.init(applicationContext)
// X系列基础库初始化
XBasicLibInit.init(this)
// 初始化日志打印
isDebug = SettingUtils.enableDebugMode
Log.init(applicationContext)
// 转发历史工具类初始化
HistoryUtils.init(applicationContext)
// X系列基础库初始化
XBasicLibInit.init(this)
// 版本更新初始化
XUpdateInit.init(this)
// 运营统计数据

View File

@ -1,6 +1,8 @@
package com.idormy.sms.forwarder.utils
import android.location.Criteria
import com.idormy.sms.forwarder.R
import com.xuexiang.xutil.resource.ResUtils.getString
class SettingUtils private constructor() {
companion object {
@ -97,7 +99,7 @@ class SettingUtils private constructor() {
var requestTimeout: Int by SharedPreference(SP_REQUEST_TIMEOUT, 10)
//通知内容
var notifyContent: String by SharedPreference(SP_NOTIFY_CONTENT, "")
var notifyContent: String by SharedPreference(SP_NOTIFY_CONTENT, getString(R.string.notification_content))
//设备名称
var extraDeviceMark: String by SharedPreference(SP_EXTRA_DEVICE_MARK, "")