Adopt tab/controller transitions from SY

Original author: @jobobby04
This commit is contained in:
arkon
2020-08-22 13:03:39 -04:00
parent 9920ff617b
commit 9ba11a585f
3 changed files with 7 additions and 7 deletions
@@ -28,8 +28,8 @@ fun Controller.requestPermissionsSafe(permissions: Array<String>, requestCode: I
}
}
fun Controller.withFadeTransaction(duration: Long = 150L): RouterTransaction {
fun Controller.withFadeTransaction(): RouterTransaction {
return RouterTransaction.with(this)
.pushChangeHandler(FadeChangeHandler(duration))
.popChangeHandler(FadeChangeHandler(duration))
.pushChangeHandler(FadeChangeHandler())
.popChangeHandler(FadeChangeHandler())
}