mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 16:59:09 +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()) {
|
if (!LibraryUpdateService.isRunning()) {
|
||||||
snack?.dismiss()
|
snack?.dismiss()
|
||||||
snack = view.snack(R.string.updating_library) {
|
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) {
|
setAction(R.string.cancel) {
|
||||||
LibraryUpdateService.stop(context)
|
LibraryUpdateService.stop(context)
|
||||||
Handler().post {
|
Handler().post {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user