[#12547] 当 Android 主题(深色/浅色)改变时游戏崩溃
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
问题概要
在 Android 平台上,当游戏运行时若系统主题(深色/浅色)发生变化(自动或手动切换),游戏会发生崩溃,且未生成崩溃报告文件。
内容
平台
Android
构建版本
159.7
问题
当 Android 主题自动更改或用户在游戏运行时通过系统控件切换主题时,游戏崩溃。游戏没有生成崩溃报告文件。
系统信息:
Android 11 (SDK 30 build V12.5.6.0.RJCMIXM) Xiaomi Redmi 9
复现步骤
在主菜单打开游戏。
通过系统控件切换主题。
使用的模组
无
存档文件
无
(崩溃)日志
游戏没有生成任何崩溃报告。
提交
我已更新到最新版本 以确保我的问题尚未被修复。
我已搜索已关闭和开放的 issue,以确保此问题尚未被报告。
我没有使用 Foo's Client。
此问题是在未启用模组的情况下发生的。
我已附上一个有效的存档文件。
原始信息
GitHub 编号:#12547
作者:Adham084
状态:closed
标签:bug
创建时间:2026-08-28 23:23:04 CST
<details> <summary>查看原文</summary>
Platforms
Android
Build
159.7
Issue
The game crashes when the android theme changes automatically or when toggled by user from system controls while the game is running. The game does not generate a crash report file.
System Info:
Android 11 (SDK 30 build V12.5.6.0.RJCMIXM) Xiaomi Redmi 9
Steps to reproduce
Open the game in the main menu.
From the system controls toggle the theme.
Mods used
None
Save file
None
(Crash) logs
The game didn't generate any crash report.
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
</details>
来源:GitHub #12547