@ -276,7 +276,7 @@ class RecentsController(bundle: Bundle? = null) :
}
override fun handleSheetBack(): Boolean {
if (binding.downloadBottomSheet.dlBottomSheet.sheetBehavior?.state == BottomSheetBehavior.STATE_EXPANDED) {
if (showingDownloads) {
binding.downloadBottomSheet.dlBottomSheet.dismiss()
return true
@ -318,7 +318,7 @@ class BrowseController :
override fun sheetIsExpanded(): Boolean = binding.bottomSheet.root.sheetBehavior.isExpanded()
if (!binding.bottomSheet.root.sheetBehavior.isCollapsed()) {
if (showingExtensions) {
if (binding.bottomSheet.root.canGoBack()) {
binding.bottomSheet.root.sheetBehavior?.collapse()