Android: Remove orientation lock on system update dialog

This commit is contained in:
Charles Lombardo 2023-01-26 12:57:00 -05:00
parent c0868f04a9
commit 410aaef56e

View File

@ -16,11 +16,6 @@ import org.dolphinemu.dolphinemu.databinding.DialogProgressTvBinding
class SystemUpdateProgressBarDialogFragment : DialogFragment() {
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
// Store the current orientation to be restored later
val orientation = requireActivity().requestedOrientation
// Rotating the device while the update is running can result in a title failing to import.
requireActivity().requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LOCKED
val viewModel = ViewModelProvider(requireActivity())[SystemUpdateViewModel::class.java]
val dialogProgressBinding: DialogProgressBinding
@ -83,8 +78,6 @@ class SystemUpdateProgressBarDialogFragment : DialogFragment() {
val progressBarFragment = SystemUpdateResultFragment()
progressBarFragment.show(parentFragmentManager, "OnlineUpdateResultFragment")
requireActivity().requestedOrientation = orientation
dismiss()
}