GlobalApplication函数参数类型调整

This commit is contained in:
ZhanGSKen
2025-09-27 21:02:02 +08:00
parent 6656161903
commit 44679d0c8a
3 changed files with 8 additions and 8 deletions

View File

@@ -22,12 +22,12 @@ public class GlobalApplication extends Application {
GlobalApplication.isDebuging = isDebuging;
}
public static void saveDebugStatus(GlobalApplication application) {
APPModel.saveBeanToFile(application.getAPPModelFilePath(application), new APPModel(GlobalApplication.isDebuging));
public static void saveDebugStatus(Context context) {
APPModel.saveBeanToFile(getAPPModelFilePath(context), new APPModel(GlobalApplication.isDebuging));
}
static String getAPPModelFilePath(GlobalApplication application) {
return application.getDataDir().getPath() + "/APPModel.json";
static String getAPPModelFilePath(Context context) {
return context.getDataDir().getPath() + "/APPModel.json";
}
public static boolean isDebuging() {