mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
Android: Remove orientation lock on system update dialog
This commit is contained in:
parent
c0868f04a9
commit
410aaef56e
1 changed files with 0 additions and 7 deletions
|
@ -16,11 +16,6 @@ import org.dolphinemu.dolphinemu.databinding.DialogProgressTvBinding
|
||||||
|
|
||||||
class SystemUpdateProgressBarDialogFragment : DialogFragment() {
|
class SystemUpdateProgressBarDialogFragment : DialogFragment() {
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
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 viewModel = ViewModelProvider(requireActivity())[SystemUpdateViewModel::class.java]
|
||||||
|
|
||||||
val dialogProgressBinding: DialogProgressBinding
|
val dialogProgressBinding: DialogProgressBinding
|
||||||
|
@ -83,8 +78,6 @@ class SystemUpdateProgressBarDialogFragment : DialogFragment() {
|
||||||
val progressBarFragment = SystemUpdateResultFragment()
|
val progressBarFragment = SystemUpdateResultFragment()
|
||||||
progressBarFragment.show(parentFragmentManager, "OnlineUpdateResultFragment")
|
progressBarFragment.show(parentFragmentManager, "OnlineUpdateResultFragment")
|
||||||
|
|
||||||
requireActivity().requestedOrientation = orientation
|
|
||||||
|
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue