From 24a028629df5b5f967a8ba2eeb0621b2926d4ad9 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Mon, 6 Feb 2023 01:19:15 +0800 Subject: [PATCH] Modify swap variable name places in IconRuleManagerTool --- .../coloros/notify/utils/tool/IconRuleManagerTool.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/fankes/coloros/notify/utils/tool/IconRuleManagerTool.kt b/app/src/main/java/com/fankes/coloros/notify/utils/tool/IconRuleManagerTool.kt index 83b1efb..b7d4bfb 100644 --- a/app/src/main/java/com/fankes/coloros/notify/utils/tool/IconRuleManagerTool.kt +++ b/app/src/main/java/com/fankes/coloros/notify/utils/tool/IconRuleManagerTool.kt @@ -70,10 +70,10 @@ object IconRuleManagerTool { private const val OS_COLOR = 0xFF4E8A5A.toInt() /** 同步地址 - Github Raw (代理) */ - private const val SYNC_URL_PROXY = "https://raw.githubusercontentS.com/fankes/AndroidNotifyIconAdapt/main" + private const val SYNC_PROXY_URL = "https://raw.githubusercontentS.com/fankes/AndroidNotifyIconAdapt/main" /** 同步地址 - Github Raw (直连) */ - private const val SYNC_URL_DIRECT = "https://raw.githubusercontent.com/fankes/AndroidNotifyIconAdapt/main" + private const val SYNC_DIRECT_URL = "https://raw.githubusercontent.com/fankes/AndroidNotifyIconAdapt/main" /** * 从在线地址手动同步规则 @@ -173,8 +173,8 @@ object IconRuleManagerTool { callback: () -> Unit ) { when (sourceType) { - IconRuleSourceSyncType.GITHUB_RAW_PROXY -> onRefreshing(context, SYNC_URL_PROXY, callback) - IconRuleSourceSyncType.GITHUB_RAW_DIRECT -> onRefreshing(context, SYNC_URL_DIRECT, callback) + IconRuleSourceSyncType.GITHUB_RAW_PROXY -> onRefreshing(context, SYNC_PROXY_URL, callback) + IconRuleSourceSyncType.GITHUB_RAW_DIRECT -> onRefreshing(context, SYNC_DIRECT_URL, callback) IconRuleSourceSyncType.CUSTOM_URL -> if (customUrl.isNotBlank()) if (customUrl.startsWith("http://") || customUrl.startsWith("https://"))