From 94191e24cc205b81f0a95b2e4208ea69c505c01e Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 12 Jul 2022 17:02:21 +0200 Subject: [PATCH] animate --- .../main/java/com/github/libretube/activities/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/libretube/activities/MainActivity.kt b/app/src/main/java/com/github/libretube/activities/MainActivity.kt index d0a0af4c8..0c9b3e4bb 100644 --- a/app/src/main/java/com/github/libretube/activities/MainActivity.kt +++ b/app/src/main/java/com/github/libretube/activities/MainActivity.kt @@ -299,6 +299,8 @@ class MainActivity : AppCompatActivity() { binding.mainMotionLayout.transitionToEnd() findViewById(R.id.main_container).isClickable = false val motionLayout = findViewById(R.id.playerMotionLayout) + // set the animation duration + motionLayout.setTransitionDuration(250) motionLayout.transitionToEnd() requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT with(motionLayout) {