From 04d6a928eb2e233c7608c24b206a468674c1935c Mon Sep 17 00:00:00 2001 From: chen08209 Date: Sun, 17 Nov 2024 21:16:14 +0800 Subject: [PATCH] Fix android tile issues --- lib/state.dart | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/state.dart b/lib/state.dart index cff5a49..54f1c57 100644 --- a/lib/state.dart +++ b/lib/state.dart @@ -129,22 +129,22 @@ class GlobalState { config: config, clashConfig: clashConfig, ); - } - if (Platform.isAndroid && !isVpnService) { - clashCore.setState( - CoreState( - enable: config.vpnProps.enable, - accessControl: config.isAccessControl ? config.accessControl : null, - ipv6: config.vpnProps.ipv6, - allowBypass: config.vpnProps.allowBypass, - systemProxy: config.vpnProps.systemProxy, - onlyProxy: config.appSetting.onlyProxy, - bypassDomain: config.networkProps.bypassDomain, - routeAddress: clashConfig.routeAddress, - currentProfileName: - config.currentProfile?.label ?? config.currentProfileId ?? "", - ), - ); + if (Platform.isAndroid) { + clashCore.setState( + CoreState( + enable: config.vpnProps.enable, + accessControl: config.isAccessControl ? config.accessControl : null, + ipv6: config.vpnProps.ipv6, + allowBypass: config.vpnProps.allowBypass, + systemProxy: config.vpnProps.systemProxy, + onlyProxy: config.appSetting.onlyProxy, + bypassDomain: config.networkProps.bypassDomain, + routeAddress: clashConfig.routeAddress, + currentProfileName: + config.currentProfile?.label ?? config.currentProfileId ?? "", + ), + ); + } } updateCoreVersionInfo(appState); }