mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix snack for updating library being behind the nav bar sometimes
This commit is contained in:
parent
5927ca6976
commit
8cadb283f8
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue