fix: 调试解锁成功后补全调试状态持久化保存

- 在 GlobalApplication.setIsDebugging(true) 后补充
  saveDebugStatus() 调用,确保调试模式状态持久化到本地文件
This commit is contained in:
aBuild
2026-05-23 22:18:37 +08:00
parent 7efd1b5f5c
commit 5185ecee3c
3 changed files with 5 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sat May 23 21:44:25 HKT 2026
#Sat May 23 21:57:17 HKT 2026
stageCount=21
libraryProject=libappbase
baseVersion=15.20
publishVersion=15.20.20
buildCount=15
buildCount=16
baseBetaVersion=15.20.21

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sat May 23 21:44:25 HKT 2026
#Sat May 23 21:57:17 HKT 2026
stageCount=21
libraryProject=libappbase
baseVersion=15.20
publishVersion=15.20.20
buildCount=15
buildCount=16
baseBetaVersion=15.20.21

View File

@@ -335,6 +335,7 @@ public class AboutView extends LinearLayout {
String savedToken = DebugSwitchInfoImageView.getDebugToken();
if (savedToken != null && savedToken.equals(inputToken)) {
GlobalApplication.setIsDebugging(true);
GlobalApplication.saveDebugStatus(GlobalApplication.getInstance());
Toast.makeText(mContext, "调试解锁成功,重启应用后生效", Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(mContext, "调试Token不匹配", Toast.LENGTH_SHORT).show();