Skip to content

Commit

Permalink
Added ROTATION_ANIMATION_SEAMLESS
Browse files Browse the repository at this point in the history
Changed the animation on Activity rotation
  • Loading branch information
romanofranz authored Apr 8, 2024
1 parent e4a5f4b commit 9daf0dc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class MainActivity : ComponentActivity() {
installSplashScreen()
enableEdgeToEdge()
super.onCreate(savedInstanceState)

val windowParams: WindowManager.LayoutParams = window.attributes
windowParams.rotationAnimation = WindowManager.LayoutParams.ROTATION_ANIMATION_SEAMLESS
window.attributes = windowParams

setContent {
val cameraOrientation by cameraOrientationUseCase().collectAsStateWithLifecycle(initialValue = CameraSettings())

Expand Down

0 comments on commit 9daf0dc

Please sign in to comment.