mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 10:45:49 +08:00
Merge code
This commit is contained in:
@@ -35,8 +35,8 @@ object HookConst {
|
|||||||
const val REMOVE_DNDALERT_NOTIFY = "_remove_dndalert_notify"
|
const val REMOVE_DNDALERT_NOTIFY = "_remove_dndalert_notify"
|
||||||
const val NOTIFY_ICON_DATAS = "_notify_icon_datas"
|
const val NOTIFY_ICON_DATAS = "_notify_icon_datas"
|
||||||
|
|
||||||
const val SOURCE_SYNC_WAY = "_source_sync_way"
|
const val SOURCE_SYNC_WAY = "_rule_source_sync_way"
|
||||||
const val SOURCE_SYNC_WAY_CUSTOM_URL = "_source_sync_way_custom_url"
|
const val SOURCE_SYNC_WAY_CUSTOM_URL = "_rule_source_sync_way_custom_url"
|
||||||
|
|
||||||
const val TYPE_SOURCE_SYNC_WAY_1 = 1000
|
const val TYPE_SOURCE_SYNC_WAY_1 = 1000
|
||||||
const val TYPE_SOURCE_SYNC_WAY_2 = 2000
|
const val TYPE_SOURCE_SYNC_WAY_2 = 2000
|
||||||
|
@@ -105,24 +105,26 @@ object IconRuleManagerTool {
|
|||||||
diaSfRd3.isChecked = false
|
diaSfRd3.isChecked = false
|
||||||
diaSfTextLin.isVisible = false
|
diaSfTextLin.isVisible = false
|
||||||
sourceType = TYPE_SOURCE_SYNC_WAY_1
|
sourceType = TYPE_SOURCE_SYNC_WAY_1
|
||||||
context.modulePrefs.putInt(SOURCE_SYNC_WAY, TYPE_SOURCE_SYNC_WAY_1)
|
|
||||||
}
|
}
|
||||||
diaSfRd2.setOnClickListener {
|
diaSfRd2.setOnClickListener {
|
||||||
diaSfRd1.isChecked = false
|
diaSfRd1.isChecked = false
|
||||||
diaSfRd3.isChecked = false
|
diaSfRd3.isChecked = false
|
||||||
diaSfTextLin.isVisible = false
|
diaSfTextLin.isVisible = false
|
||||||
sourceType = TYPE_SOURCE_SYNC_WAY_2
|
sourceType = TYPE_SOURCE_SYNC_WAY_2
|
||||||
context.modulePrefs.putInt(SOURCE_SYNC_WAY, TYPE_SOURCE_SYNC_WAY_2)
|
|
||||||
}
|
}
|
||||||
diaSfRd3.setOnClickListener {
|
diaSfRd3.setOnClickListener {
|
||||||
diaSfRd1.isChecked = false
|
diaSfRd1.isChecked = false
|
||||||
diaSfRd2.isChecked = false
|
diaSfRd2.isChecked = false
|
||||||
diaSfTextLin.isVisible = true
|
diaSfTextLin.isVisible = true
|
||||||
sourceType = TYPE_SOURCE_SYNC_WAY_3
|
sourceType = TYPE_SOURCE_SYNC_WAY_3
|
||||||
context.modulePrefs.putInt(SOURCE_SYNC_WAY, TYPE_SOURCE_SYNC_WAY_3)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
confirmButton { sync(context, it) }
|
confirmButton {
|
||||||
|
sync(context) {
|
||||||
|
context.modulePrefs.putInt(SOURCE_SYNC_WAY, sourceType)
|
||||||
|
it()
|
||||||
|
}
|
||||||
|
}
|
||||||
cancelButton()
|
cancelButton()
|
||||||
neutralButton(text = "自定义规则") {
|
neutralButton(text = "自定义规则") {
|
||||||
context.showDialog {
|
context.showDialog {
|
||||||
|
Reference in New Issue
Block a user