Fix bottom nav being visible when resuming app (fixes #6012)

This commit is contained in:
arkon
2022-01-09 10:26:41 -05:00
parent 727a7e4b2d
commit 4a27f0546c
3 changed files with 5 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ class TachiyomiBottomNavigationView @JvmOverloads constructor(
*
* @param animate True if slide up should be animated
*/
fun slideUp(animate: Boolean = true) {
fun slideUp(animate: Boolean = true) = post {
currentAnimator?.cancel()
clearAnimation()
@@ -106,7 +106,7 @@ class TachiyomiBottomNavigationView @JvmOverloads constructor(
*
* @param animate True if slide down should be animated
*/
fun slideDown(animate: Boolean = true) {
fun slideDown(animate: Boolean = true) = post {
currentAnimator?.cancel()
clearAnimation()