Files
QieKan-3.0/app
IsilsolmeandClaude Opus 4.8 59468d1bc2 Fix language preference not persisting after app restart
Use commit() instead of apply() for String preference writes to ensure
the value is written to disk synchronously before the process is killed
during restart().

Root cause: SharedPreferences.apply() writes to memory immediately but
commits to disk asynchronously. When context.restart() calls
Process.killProcess()+exitProcess(0) immediately after writing the
language preference, the async disk write may not complete, causing the
new process to read the old value.

Closes #862

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 19:45:11 +08:00
..
2022-01-03 23:59:44 +08:00
2025-07-11 02:36:16 +08:00
2026-05-22 02:49:29 +08:00