From c37e43d6a73b0a1bee1e894fab099c191301a7fb Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 18 Apr 2024 18:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E8=B0=83=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java index 6b116a40..a2b7b1ad 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java @@ -445,9 +445,9 @@ public class AppMaster { int enable = jsonObject.optInt("enable", 1); String name = jsonObject.optString("name", "XYMP"); if (enable != 0) { - SysApi.enableApp(mService.getApplicationContext(), name); + SysApi.openHotSpot(mService.getApplicationContext()); } else { - SysApi.disableApp(mService.getApplicationContext(), name); + SysApi.closeHotSpot(mService.getApplicationContext()); } } else if (TextUtils.equals(cmd, CMD_ENABLE_GPS)) { int enable = jsonObject.optInt("enable", 1);