diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/ui/ProfileDialog.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/ui/ProfileDialog.kt index 4ef3dae51f..27d1b598ff 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/ui/ProfileDialog.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/input/ui/ProfileDialog.kt @@ -46,10 +46,8 @@ class ProfileDialog : BottomSheetDialogFragment() { binding.profileList.addItemDecoration(divider) // You can't expand a bottom sheet with a controller/remote/other non-touch devices - val behavior: BottomSheetBehavior = BottomSheetBehavior.from(view.parent as View) - if (!resources.getBoolean(R.bool.hasTouch)) { - behavior.state = BottomSheetBehavior.STATE_EXPANDED - } + BottomSheetBehavior.from(view.parent as View).state = + BottomSheetBehavior.STATE_EXPANDED } override fun onDestroyView() { diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/AboutDialogFragment.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/AboutDialogFragment.kt index 059442ae98..a8ef454fc1 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/AboutDialogFragment.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/AboutDialogFragment.kt @@ -38,10 +38,8 @@ class AboutDialogFragment : BottomSheetDialogFragment() { } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - if (!resources.getBoolean(R.bool.hasTouch)) { - BottomSheetBehavior.from(view.parent as View).state = - BottomSheetBehavior.STATE_EXPANDED - } + BottomSheetBehavior.from(view.parent as View).state = + BottomSheetBehavior.STATE_EXPANDED val wark = resources.getString(R.string.wark) val branch = String.format( diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/GridOptionDialogFragment.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/GridOptionDialogFragment.kt index 16a526bb2a..7c97979ba2 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/GridOptionDialogFragment.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/GridOptionDialogFragment.kt @@ -44,11 +44,9 @@ class GridOptionDialogFragment : BottomSheetDialogFragment() { } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - // Pins fragment to the top of the dialog ensures the dialog is expanded in landscape by default - if (!resources.getBoolean(R.bool.hasTouch)) { - BottomSheetBehavior.from(view.parent as View).state = - BottomSheetBehavior.STATE_EXPANDED - } + // Ensure the dialog is expanded in landscape by default + BottomSheetBehavior.from(view.parent as View).state = + BottomSheetBehavior.STATE_EXPANDED if (activity is AppCompatActivity) { setUpCoverButtons()