mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 04:59:17 +01:00
Fix snack for updating library being behind the nav bar sometimes
This commit is contained in:
parent
5927ca6976
commit
8cadb283f8
@ -331,7 +331,12 @@ class RecentsController(bundle: Bundle? = null) :
|
||||
if (!LibraryUpdateService.isRunning()) {
|
||||
snack?.dismiss()
|
||||
snack = view.snack(R.string.updating_library) {
|
||||
anchorView = binding.downloadBottomSheet.root
|
||||
anchorView =
|
||||
if (binding.downloadBottomSheet.root.sheetBehavior.isCollapsed()) {
|
||||
binding.downloadBottomSheet.root
|
||||
} else {
|
||||
activityBinding?.bottomNav ?: binding.downloadBottomSheet.root
|
||||
}
|
||||
setAction(R.string.cancel) {
|
||||
LibraryUpdateService.stop(context)
|
||||
Handler().post {
|
||||
|
Loading…
Reference in New Issue
Block a user