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

@@ -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();