更正调用的方法

serial
Matthew 1 year ago
parent c70eccdbfa
commit c37e43d6a7

@ -445,9 +445,9 @@ public class AppMaster {
int enable = jsonObject.optInt("enable", 1); int enable = jsonObject.optInt("enable", 1);
String name = jsonObject.optString("name", "XYMP"); String name = jsonObject.optString("name", "XYMP");
if (enable != 0) { if (enable != 0) {
SysApi.enableApp(mService.getApplicationContext(), name); SysApi.openHotSpot(mService.getApplicationContext());
} else { } else {
SysApi.disableApp(mService.getApplicationContext(), name); SysApi.closeHotSpot(mService.getApplicationContext());
} }
} else if (TextUtils.equals(cmd, CMD_ENABLE_GPS)) { } else if (TextUtils.equals(cmd, CMD_ENABLE_GPS)) {
int enable = jsonObject.optInt("enable", 1); int enable = jsonObject.optInt("enable", 1);

Loading…
Cancel
Save