mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-05 10:15:31 +08:00
Fix the custom url sync result callback maybe not canceled the dialog problem in IconRuleManagerTool
This commit is contained in:
@@ -246,6 +246,8 @@ object IconRuleManagerTool {
|
|||||||
fun doParse(result: () -> Unit = {}) {
|
fun doParse(result: () -> Unit = {}) {
|
||||||
wait(context, url) { isDone, content ->
|
wait(context, url) { isDone, content ->
|
||||||
result()
|
result()
|
||||||
|
/** 延迟重新回调防止对话框无法取消 */
|
||||||
|
delayedRun { result() }
|
||||||
IconPackParams(context).also { params ->
|
IconPackParams(context).also { params ->
|
||||||
when {
|
when {
|
||||||
isDone -> when {
|
isDone -> when {
|
||||||
|
Reference in New Issue
Block a user