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