From 1fe9362b4fe914e14a4843aeb4db79df642a6b44 Mon Sep 17 00:00:00 2001 From: pppscn <35696959@qq.com> Date: Sun, 13 Nov 2022 21:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E7=BC=96=E8=BE=91`?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E8=BD=AC=E5=8F=91=E8=A7=84=E5=88=99`?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=BF=AB=E6=8D=B7=E6=8C=89=E9=92=AE?= =?UTF-8?q?`{{=E5=8D=A1=E6=A7=BD=E4=BF=A1=E6=81=AF}}`=E6=8D=A2=E6=88=90`{{?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=A0=87=E9=A2=98}}`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/idormy/sms/forwarder/fragment/RulesEditFragment.kt | 7 +++++++ app/src/main/res/layout/fragment_rules_edit.xml | 6 ++++++ app/src/main/res/values-en/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 4 files changed, 15 insertions(+) diff --git a/app/src/main/java/com/idormy/sms/forwarder/fragment/RulesEditFragment.kt b/app/src/main/java/com/idormy/sms/forwarder/fragment/RulesEditFragment.kt index 63ee0d08..e983fcb5 100644 --- a/app/src/main/java/com/idormy/sms/forwarder/fragment/RulesEditFragment.kt +++ b/app/src/main/java/com/idormy/sms/forwarder/fragment/RulesEditFragment.kt @@ -101,6 +101,7 @@ class RulesEditFragment : BaseFragment(), View.OnClic binding!!.rbPhone.visibility = View.GONE binding!!.rbContent.visibility = View.GONE binding!!.tvMuRuleTips.setText(R.string.mu_rule_app_tips) + binding!!.btInsertExtra.visibility = View.GONE binding!!.btInsertSender.visibility = View.GONE binding!!.btInsertContent.visibility = View.GONE } @@ -112,6 +113,7 @@ class RulesEditFragment : BaseFragment(), View.OnClic binding!!.rbMultiMatch.visibility = View.GONE binding!!.btInsertContent.visibility = View.GONE binding!!.btInsertSenderApp.visibility = View.GONE + binding!!.btInsertTitleApp.visibility = View.GONE binding!!.btInsertContentApp.visibility = View.GONE } else -> { @@ -119,6 +121,7 @@ class RulesEditFragment : BaseFragment(), View.OnClic binding!!.rbPackageName.visibility = View.GONE binding!!.rbInformContent.visibility = View.GONE binding!!.btInsertSenderApp.visibility = View.GONE + binding!!.btInsertTitleApp.visibility = View.GONE binding!!.btInsertContentApp.visibility = View.GONE } } @@ -230,6 +233,10 @@ class RulesEditFragment : BaseFragment(), View.OnClic CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_package_name)) return } + R.id.bt_insert_title_app -> { + CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_title)) + return + } R.id.bt_insert_content_app -> { CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_msg)) return diff --git a/app/src/main/res/layout/fragment_rules_edit.xml b/app/src/main/res/layout/fragment_rules_edit.xml index fdb04dc8..f967131b 100644 --- a/app/src/main/res/layout/fragment_rules_edit.xml +++ b/app/src/main/res/layout/fragment_rules_edit.xml @@ -367,6 +367,12 @@ android:layout_marginStart="5dp" android:text="@string/insert_sender_app" /> + + Phone PackageName SMS + InformTitle InformContent SIM Time diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0dfb3d52..80ca2492 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -374,6 +374,7 @@ 来源号码 APP包名 短信内容 + 通知内容 通知内容 卡槽信息 接收时间