mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 01:55:06 +01:00
Fix flash of tab text when dragging extensions bottom sheet
This commit is contained in:
parent
54a3767eb4
commit
4d5943ab5b
@ -206,7 +206,9 @@ class SourceController :
|
|||||||
} else RetainViewMode.RELEASE_DETACH
|
} else RetainViewMode.RELEASE_DETACH
|
||||||
sheet_layout.isClickable = state == BottomSheetBehavior.STATE_COLLAPSED
|
sheet_layout.isClickable = state == BottomSheetBehavior.STATE_COLLAPSED
|
||||||
sheet_layout.isFocusable = state == BottomSheetBehavior.STATE_COLLAPSED
|
sheet_layout.isFocusable = state == BottomSheetBehavior.STATE_COLLAPSED
|
||||||
setBottomSheetTabs(if (state == BottomSheetBehavior.STATE_COLLAPSED) 0f else 1f)
|
if (state == BottomSheetBehavior.STATE_COLLAPSED || state == BottomSheetBehavior.STATE_EXPANDED) {
|
||||||
|
setBottomSheetTabs(if (state == BottomSheetBehavior.STATE_COLLAPSED) 0f else 1f)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -259,7 +261,7 @@ class SourceController :
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setBottomPadding() {
|
private fun setBottomPadding() {
|
||||||
val bottomBar = activity?.bottom_nav ?: return
|
val bottomBar = activity?.bottom_nav ?: return
|
||||||
ext_bottom_sheet ?: return
|
ext_bottom_sheet ?: return
|
||||||
val pad = bottomBar.translationY - bottomBar.height
|
val pad = bottomBar.translationY - bottomBar.height
|
||||||
|
Loading…
Reference in New Issue
Block a user