File tree 2 files changed +6
-1
lines changed
Jetcaster/mobile/src/main
java/com/example/jetcaster/ui
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 28
28
android : label =" @string/app_name"
29
29
android : supportsRtl =" true"
30
30
android : theme =" @style/Theme.Jetcaster"
31
+ android : enableOnBackInvokedCallback =" true"
31
32
android : usesCleartextTraffic =" true" >
32
33
33
34
<activity
Original file line number Diff line number Diff line change 16
16
17
17
package com.example.jetcaster.ui
18
18
19
+ import androidx.compose.animation.EnterTransition
20
+ import androidx.compose.animation.scaleOut
19
21
import androidx.compose.material3.AlertDialog
20
22
import androidx.compose.material3.Text
21
23
import androidx.compose.material3.TextButton
@@ -40,7 +42,9 @@ fun JetcasterApp(
40
42
if (appState.isOnline) {
41
43
NavHost (
42
44
navController = appState.navController,
43
- startDestination = Screen .Home .route
45
+ startDestination = Screen .Home .route,
46
+ popExitTransition = { scaleOut(targetScale = 0.9f ) },
47
+ popEnterTransition = { EnterTransition .None }
44
48
) {
45
49
composable(Screen .Home .route) { backStackEntry ->
46
50
MainScreen (
You can’t perform that action at this time.
0 commit comments