mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-08 01:10:23 +00:00
优化:编辑通知转发规则
界面,快捷按钮{{卡槽信息}}
换成{{通知标题}}
This commit is contained in:
parent
875efa08ae
commit
1fe9362b4f
@ -101,6 +101,7 @@ class RulesEditFragment : BaseFragment<FragmentRulesEditBinding?>(), View.OnClic
|
|||||||
binding!!.rbPhone.visibility = View.GONE
|
binding!!.rbPhone.visibility = View.GONE
|
||||||
binding!!.rbContent.visibility = View.GONE
|
binding!!.rbContent.visibility = View.GONE
|
||||||
binding!!.tvMuRuleTips.setText(R.string.mu_rule_app_tips)
|
binding!!.tvMuRuleTips.setText(R.string.mu_rule_app_tips)
|
||||||
|
binding!!.btInsertExtra.visibility = View.GONE
|
||||||
binding!!.btInsertSender.visibility = View.GONE
|
binding!!.btInsertSender.visibility = View.GONE
|
||||||
binding!!.btInsertContent.visibility = View.GONE
|
binding!!.btInsertContent.visibility = View.GONE
|
||||||
}
|
}
|
||||||
@ -112,6 +113,7 @@ class RulesEditFragment : BaseFragment<FragmentRulesEditBinding?>(), View.OnClic
|
|||||||
binding!!.rbMultiMatch.visibility = View.GONE
|
binding!!.rbMultiMatch.visibility = View.GONE
|
||||||
binding!!.btInsertContent.visibility = View.GONE
|
binding!!.btInsertContent.visibility = View.GONE
|
||||||
binding!!.btInsertSenderApp.visibility = View.GONE
|
binding!!.btInsertSenderApp.visibility = View.GONE
|
||||||
|
binding!!.btInsertTitleApp.visibility = View.GONE
|
||||||
binding!!.btInsertContentApp.visibility = View.GONE
|
binding!!.btInsertContentApp.visibility = View.GONE
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
@ -119,6 +121,7 @@ class RulesEditFragment : BaseFragment<FragmentRulesEditBinding?>(), View.OnClic
|
|||||||
binding!!.rbPackageName.visibility = View.GONE
|
binding!!.rbPackageName.visibility = View.GONE
|
||||||
binding!!.rbInformContent.visibility = View.GONE
|
binding!!.rbInformContent.visibility = View.GONE
|
||||||
binding!!.btInsertSenderApp.visibility = View.GONE
|
binding!!.btInsertSenderApp.visibility = View.GONE
|
||||||
|
binding!!.btInsertTitleApp.visibility = View.GONE
|
||||||
binding!!.btInsertContentApp.visibility = View.GONE
|
binding!!.btInsertContentApp.visibility = View.GONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -230,6 +233,10 @@ class RulesEditFragment : BaseFragment<FragmentRulesEditBinding?>(), View.OnClic
|
|||||||
CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_package_name))
|
CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_package_name))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
R.id.bt_insert_title_app -> {
|
||||||
|
CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_title))
|
||||||
|
return
|
||||||
|
}
|
||||||
R.id.bt_insert_content_app -> {
|
R.id.bt_insert_content_app -> {
|
||||||
CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_msg))
|
CommonUtils.insertOrReplaceText2Cursor(etSmsTemplate, getString(R.string.tag_msg))
|
||||||
return
|
return
|
||||||
|
@ -367,6 +367,12 @@
|
|||||||
android:layout_marginStart="5dp"
|
android:layout_marginStart="5dp"
|
||||||
android:text="@string/insert_sender_app" />
|
android:text="@string/insert_sender_app" />
|
||||||
|
|
||||||
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
||||||
|
android:id="@+id/bt_insert_title_app"
|
||||||
|
style="@style/insertButtonStyle"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
android:text="@string/insert_title_app" />
|
||||||
|
|
||||||
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
||||||
android:id="@+id/bt_insert_content_app"
|
android:id="@+id/bt_insert_content_app"
|
||||||
style="@style/insertButtonStyle"
|
style="@style/insertButtonStyle"
|
||||||
|
@ -373,6 +373,7 @@
|
|||||||
<string name="insert_sender">Phone</string>
|
<string name="insert_sender">Phone</string>
|
||||||
<string name="insert_sender_app">PackageName</string>
|
<string name="insert_sender_app">PackageName</string>
|
||||||
<string name="insert_content">SMS</string>
|
<string name="insert_content">SMS</string>
|
||||||
|
<string name="insert_title_app">InformTitle</string>
|
||||||
<string name="insert_content_app">InformContent</string>
|
<string name="insert_content_app">InformContent</string>
|
||||||
<string name="insert_extra">SIM</string>
|
<string name="insert_extra">SIM</string>
|
||||||
<string name="insert_time">Time</string>
|
<string name="insert_time">Time</string>
|
||||||
|
@ -374,6 +374,7 @@
|
|||||||
<string name="insert_sender">来源号码</string>
|
<string name="insert_sender">来源号码</string>
|
||||||
<string name="insert_sender_app">APP包名</string>
|
<string name="insert_sender_app">APP包名</string>
|
||||||
<string name="insert_content">短信内容</string>
|
<string name="insert_content">短信内容</string>
|
||||||
|
<string name="insert_title_app">通知内容</string>
|
||||||
<string name="insert_content_app">通知内容</string>
|
<string name="insert_content_app">通知内容</string>
|
||||||
<string name="insert_extra">卡槽信息</string>
|
<string name="insert_extra">卡槽信息</string>
|
||||||
<string name="insert_time">接收时间</string>
|
<string name="insert_time">接收时间</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user