Skip to content

Commit

Permalink
Fix android tile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chen08209 committed Nov 17, 2024
1 parent d894811 commit a333794
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lib/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a333794

Please sign in to comment.