File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Jetcaster/mobile/src/main
java/com/example/jetcaster/ui Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2828 android : label =" @string/app_name"
2929 android : supportsRtl =" true"
3030 android : theme =" @style/Theme.Jetcaster"
31+ android : enableOnBackInvokedCallback =" true"
3132 android : usesCleartextTraffic =" true" >
3233
3334 <activity
Original file line number Diff line number Diff line change 1616
1717package com.example.jetcaster.ui
1818
19+ import androidx.compose.animation.EnterTransition
20+ import androidx.compose.animation.scaleOut
1921import androidx.compose.material3.AlertDialog
2022import androidx.compose.material3.Text
2123import androidx.compose.material3.TextButton
@@ -40,7 +42,9 @@ fun JetcasterApp(
4042 if (appState.isOnline) {
4143 NavHost (
4244 navController = appState.navController,
43- startDestination = Screen .Home .route
45+ startDestination = Screen .Home .route,
46+ popExitTransition = { scaleOut(targetScale = 0.9f ) },
47+ popEnterTransition = { EnterTransition .None }
4448 ) {
4549 composable(Screen .Home .route) { backStackEntry ->
4650 MainScreen (
You can’t perform that action at this time.
0 commit comments