Speed up controller fade and tab expansion animations

This commit is contained in:
arkon
2020-07-11 23:08:39 -04:00
parent 9f7fda0bc5
commit 4809d06d04
3 changed files with 5 additions and 5 deletions
@@ -28,8 +28,8 @@ fun Controller.requestPermissionsSafe(permissions: Array<String>, requestCode: I
}
}
fun Controller.withFadeTransaction(): RouterTransaction {
fun Controller.withFadeTransaction(duration: Long = 150L): RouterTransaction {
return RouterTransaction.with(this)
.pushChangeHandler(FadeChangeHandler())
.popChangeHandler(FadeChangeHandler())
.pushChangeHandler(FadeChangeHandler(duration))
.popChangeHandler(FadeChangeHandler(duration))
}