From 2f411e4fdd642e0e9ade6fa0bd1e6aa95d098351 Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Tue, 9 Jun 2026 20:51:40 +0800 Subject: [PATCH] fix --- screens/HomeScreen.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/screens/HomeScreen.tsx b/screens/HomeScreen.tsx index 99344d9..119e50c 100644 --- a/screens/HomeScreen.tsx +++ b/screens/HomeScreen.tsx @@ -257,19 +257,8 @@ export default class HomeScreen extends Component { : undefined, }); - async ensureBatteryOptimizationIgnored() { - if (Platform.OS !== 'android') return; - try { - const mod = NativeModules.ProxyServiceModule; - if (!mod) return; - const ignored = await mod.isBatteryOptimizationIgnored(); - if (!ignored) await mod.requestIgnoreBatteryOptimization(); - } catch (_) {} - } - async startProxyClient() { try { - await this.ensureBatteryOptimizationIgnored(); this.clientId = DeviceInfo.getUniqueIdSync(); const userId = Api.instance.getUserId(); this.setState({ proxyStatus: 'connecting' });