Merge code

This commit is contained in:
2022-03-22 20:34:04 +08:00
parent 803e09b26c
commit c3c249a37d

View File

@@ -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 = "自定义规则") {