mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
Fix back closing the app when dl/extensions sheet is still expanding up
This commit is contained in:
parent
04ab0d37ea
commit
1fe46ef475
@ -276,7 +276,7 @@ class RecentsController(bundle: Bundle? = null) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun handleSheetBack(): Boolean {
|
override fun handleSheetBack(): Boolean {
|
||||||
if (binding.downloadBottomSheet.dlBottomSheet.sheetBehavior?.state == BottomSheetBehavior.STATE_EXPANDED) {
|
if (showingDownloads) {
|
||||||
binding.downloadBottomSheet.dlBottomSheet.dismiss()
|
binding.downloadBottomSheet.dlBottomSheet.dismiss()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ class BrowseController :
|
|||||||
override fun sheetIsExpanded(): Boolean = binding.bottomSheet.root.sheetBehavior.isExpanded()
|
override fun sheetIsExpanded(): Boolean = binding.bottomSheet.root.sheetBehavior.isExpanded()
|
||||||
|
|
||||||
override fun handleSheetBack(): Boolean {
|
override fun handleSheetBack(): Boolean {
|
||||||
if (!binding.bottomSheet.root.sheetBehavior.isCollapsed()) {
|
if (showingExtensions) {
|
||||||
if (binding.bottomSheet.root.canGoBack()) {
|
if (binding.bottomSheet.root.canGoBack()) {
|
||||||
binding.bottomSheet.root.sheetBehavior?.collapse()
|
binding.bottomSheet.root.sheetBehavior?.collapse()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user