mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 02:35:41 +08:00
Merge code
This commit is contained in:
@@ -91,10 +91,7 @@ object IconRuleManagerTool {
|
||||
setText(customUrl)
|
||||
setSelection(customUrl.length)
|
||||
}
|
||||
doOnTextChanged { text, _, _, _ ->
|
||||
customUrl = text.toString()
|
||||
context.modulePrefs.putString(SOURCE_SYNC_WAY_CUSTOM_URL, text.toString())
|
||||
}
|
||||
doOnTextChanged { text, _, _, _ -> customUrl = text.toString() }
|
||||
}
|
||||
diaSfTextLin.isVisible = sourceType == TYPE_SOURCE_SYNC_WAY_3
|
||||
diaSfRd1.isChecked = sourceType == TYPE_SOURCE_SYNC_WAY_1
|
||||
@@ -120,10 +117,9 @@ object IconRuleManagerTool {
|
||||
}
|
||||
}
|
||||
confirmButton {
|
||||
sync(context, sourceType, customUrl) {
|
||||
context.modulePrefs.putInt(SOURCE_SYNC_WAY, sourceType)
|
||||
it()
|
||||
}
|
||||
context.modulePrefs.putInt(SOURCE_SYNC_WAY, sourceType)
|
||||
context.modulePrefs.putString(SOURCE_SYNC_WAY_CUSTOM_URL, customUrl)
|
||||
sync(context, sourceType, customUrl, it)
|
||||
}
|
||||
cancelButton()
|
||||
neutralButton(text = "自定义规则") {
|
||||
|
Reference in New Issue
Block a user