mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-09 19:10:51 +00:00
修复:疑似ResUtils.getString
导致FC #426
This commit is contained in:
parent
838009b938
commit
e5ed94019f
@ -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)
|
||||
// 运营统计数据
|
||||
|
@ -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, "")
|
||||
|
Loading…
Reference in New Issue
Block a user