[android,addons] per-game screen ext content unmount upon rotation hotfix (#3788)
Some checks are pending
tx-src / sources (push) Waiting to run
Check Strings / check-strings (push) Waiting to run

Fix the bug reported by Pavel in which when per-game settings screen is rotated a reloadGames() call causes external content reference to be missing.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3788
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Co-authored-by: xbzk <xbzk@eden-emu.dev>
Co-committed-by: xbzk <xbzk@eden-emu.dev>
This commit is contained in:
xbzk 2026-03-27 20:55:31 +01:00 committed by crueter
parent 16e7e034d7
commit 5856beac54
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -133,9 +133,12 @@ class GamePropertiesFragment : Fragment() {
} }
override fun onDestroy() { override fun onDestroy() {
val isChangingConfigurations = activity?.isChangingConfigurations == true
super.onDestroy() super.onDestroy()
if (!isChangingConfigurations) {
gamesViewModel.reloadGames(true) gamesViewModel.reloadGames(true)
} }
}
private fun getPlayTime() { private fun getPlayTime() {
binding.playtime.text = buildString { binding.playtime.text = buildString {