mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-19 15:25:45 +00:00
整理:通用设置提示优化
This commit is contained in:
parent
1b67930220
commit
4d7146bd7b
@ -72,7 +72,7 @@ class SettingsFragment : BaseFragment<FragmentSettingsBinding?>(), View.OnClickL
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi", "SetTextI18n")
|
||||||
override fun initViews() {
|
override fun initViews() {
|
||||||
|
|
||||||
//转发短信广播
|
//转发短信广播
|
||||||
@ -200,6 +200,10 @@ class SettingsFragment : BaseFragment<FragmentSettingsBinding?>(), View.OnClickL
|
|||||||
App.SimInfoList = PhoneUtils.getSimMultiInfo()
|
App.SimInfoList = PhoneUtils.getSimMultiInfo()
|
||||||
if (App.SimInfoList.isEmpty()) {
|
if (App.SimInfoList.isEmpty()) {
|
||||||
XToastUtils.error(R.string.tip_can_not_get_sim_infos)
|
XToastUtils.error(R.string.tip_can_not_get_sim_infos)
|
||||||
|
XXPermissions.startPermissionActivity(
|
||||||
|
requireContext(),
|
||||||
|
"android.permission.READ_PHONE_STATE"
|
||||||
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
Log.d(TAG, App.SimInfoList.toString())
|
Log.d(TAG, App.SimInfoList.toString())
|
||||||
@ -220,6 +224,10 @@ class SettingsFragment : BaseFragment<FragmentSettingsBinding?>(), View.OnClickL
|
|||||||
App.SimInfoList = PhoneUtils.getSimMultiInfo()
|
App.SimInfoList = PhoneUtils.getSimMultiInfo()
|
||||||
if (App.SimInfoList.isEmpty()) {
|
if (App.SimInfoList.isEmpty()) {
|
||||||
XToastUtils.error(R.string.tip_can_not_get_sim_infos)
|
XToastUtils.error(R.string.tip_can_not_get_sim_infos)
|
||||||
|
XXPermissions.startPermissionActivity(
|
||||||
|
requireContext(),
|
||||||
|
"android.permission.READ_PHONE_STATE"
|
||||||
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
Log.d(TAG, App.SimInfoList.toString())
|
Log.d(TAG, App.SimInfoList.toString())
|
||||||
@ -896,7 +904,7 @@ class SettingsFragment : BaseFragment<FragmentSettingsBinding?>(), View.OnClickL
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Intent跳转到[自启动]页面全网最全适配机型解决方案
|
//Intent跳转到[自启动]页面全网最全适配机型解决方案
|
||||||
val hashMap = object : HashMap<String?, List<String?>?>() {
|
private val hashMap = object : HashMap<String?, List<String?>?>() {
|
||||||
init {
|
init {
|
||||||
put(
|
put(
|
||||||
"Xiaomi", listOf(
|
"Xiaomi", listOf(
|
||||||
|
@ -367,7 +367,7 @@
|
|||||||
<string name="enable_regex_replace">Enable Regular Replacement Content</string>
|
<string name="enable_regex_replace">Enable Regular Replacement Content</string>
|
||||||
<string name="enable_regex_replace_tips">Format: RegularExpression===ReplacementResult,One rule per line.\ne.g. (\\d{3})\\d+(\\d{4})===$1****$2</string>
|
<string name="enable_regex_replace_tips">Format: RegularExpression===ReplacementResult,One rule per line.\ne.g. (\\d{3})\\d+(\\d{4})===$1****$2</string>
|
||||||
<string name="enable_exclude_from_recents">Hide from recent Apps</string>
|
<string name="enable_exclude_from_recents">Hide from recent Apps</string>
|
||||||
<string name="enable_exclude_from_recents_tips">Enable to hide SmsForwarder from recent Apps to keep it alive</string>
|
<string name="enable_exclude_from_recents_tips">Please lock it first and then enable to hide</string>
|
||||||
<string name="custom_template">Custom templates</string>
|
<string name="custom_template">Custom templates</string>
|
||||||
<string name="custom_template_tips">Tip: Insert labels as needed; Leave blank to apply default template</string>
|
<string name="custom_template_tips">Tip: Insert labels as needed; Leave blank to apply default template</string>
|
||||||
<string name="insert_sender">Phone</string>
|
<string name="insert_sender">Phone</string>
|
||||||
|
@ -367,8 +367,8 @@
|
|||||||
<string name="enable_custom_templates_tips">优先级:转发规则的自定义模板 > 全局自定义模版 > 默认</string>
|
<string name="enable_custom_templates_tips">优先级:转发规则的自定义模板 > 全局自定义模版 > 默认</string>
|
||||||
<string name="enable_regex_replace">启用正则替换内容</string>
|
<string name="enable_regex_replace">启用正则替换内容</string>
|
||||||
<string name="enable_regex_replace_tips">格式:正则表达式===替换结果,每行一个规则.\n例如:(\\d{3})\\d{4}(\\d{4})===$1****$2</string>
|
<string name="enable_regex_replace_tips">格式:正则表达式===替换结果,每行一个规则.\n例如:(\\d{3})\\d{4}(\\d{4})===$1****$2</string>
|
||||||
<string name="enable_exclude_from_recents">不在最近任务列表中显示</string>
|
<string name="enable_exclude_from_recents">在最近任务列表中隐藏</string>
|
||||||
<string name="enable_exclude_from_recents_tips">开启后,有效避免手动误杀进程,利于保活</string>
|
<string name="enable_exclude_from_recents_tips">请先锁定后再开启隐藏,有效避免手动误杀进程</string>
|
||||||
<string name="custom_template">转发信息模版</string>
|
<string name="custom_template">转发信息模版</string>
|
||||||
<string name="custom_template_tips">Tip:按需插入内容标签;留空使用默认模版</string>
|
<string name="custom_template_tips">Tip:按需插入内容标签;留空使用默认模版</string>
|
||||||
<string name="insert_sender">来源号码</string>
|
<string name="insert_sender">来源号码</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user