mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-01 14:59:13 +00:00
[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:
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() {
|
||||
|
||||
Reference in new issue
Block a user