Skip to content

Commit

Permalink
Remove unneeded behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 21, 2024
1 parent 6e28a36 commit 124e7a8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/com/edlplan/ui/fragment/ModSettingsMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ class ModSettingsMenu : BaseFragment() {

override fun onLoadView() {
reload(load())

// This fragment is expensive to load in older devices, during the loading process the dismiss
// calls are ignored as a result it can remain visible on unexpected places. This is a workaround
// to ensure that the fragment is dismissed when the scene is changed.
if (GlobalManager.getInstance().engine.scene.childScene != ModMenu.getInstance().scene) {
dismiss()
}
}

override fun onSaveInstanceState(outState: Bundle) = outState.run {
Expand Down

0 comments on commit 124e7a8

Please sign in to comment.