[android,addons] per-game screen ext content unmount upon rotation hotfix (#3788)

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 <[email protected]>
Reviewed-by: CamilleLaVey <[email protected]>
Co-authored-by: xbzk <[email protected]>
Co-committed-by: xbzk <[email protected]>
This commit is contained in:
xbzk authored and crueter committed 2026-03-27 20:55:31 +01:00
1 parent 16e7e034d7
commit 5856beac54
1 file changed
+4 -1
@@ -133,8 +133,11 @@ class GamePropertiesFragment : Fragment() {
}
override fun onDestroy() {
val isChangingConfigurations = activity?.isChangingConfigurations == true
super.onDestroy()
gamesViewModel.reloadGames(true)
if (!isChangingConfigurations) {
gamesViewModel.reloadGames(true)
}
}
private fun getPlayTime() {