File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
navigation-animation/src/main/java/com/google/accompanist/navigation/animation Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package com.google.accompanist.navigation.animation
18
18
19
+ import android.annotation.SuppressLint
19
20
import androidx.compose.animation.AnimatedVisibilityScope
20
21
import androidx.compose.animation.ExperimentalAnimationApi
21
22
import androidx.compose.runtime.Composable
@@ -24,6 +25,7 @@ import androidx.navigation.NavBackStackEntry
24
25
import androidx.navigation.NavDestination
25
26
import androidx.navigation.NavOptions
26
27
import androidx.navigation.Navigator
28
+ import kotlin.collections.forEach
27
29
28
30
/* *
29
31
* Navigator that navigates through [Composable]s. Every destination using this Navigator must
@@ -39,6 +41,7 @@ public class AnimatedComposeNavigator : Navigator<AnimatedComposeNavigator.Desti
39
41
40
42
internal val isPop = mutableStateOf(false )
41
43
44
+ @SuppressLint(" NewApi" ) // b/187418647
42
45
override fun navigate (
43
46
entries : List <NavBackStackEntry >,
44
47
navOptions : NavOptions ? ,
Original file line number Diff line number Diff line change 16
16
17
17
package com.google.accompanist.navigation.animation
18
18
19
+ import android.annotation.SuppressLint
19
20
import androidx.compose.animation.AnimatedContentScope
20
21
import androidx.compose.animation.AnimatedVisibilityScope
21
22
import androidx.compose.animation.EnterTransition
@@ -42,6 +43,7 @@ import androidx.navigation.get
42
43
* @param popExitTransition callback to determine the destination's popExit transition
43
44
* @param content composable for the destination
44
45
*/
46
+ @SuppressLint(" NewApi" ) // b/187418647
45
47
@ExperimentalAnimationApi
46
48
public fun NavGraphBuilder.composable (
47
49
route : String ,
You can’t perform that action at this time.
0 commit comments