Skip to content

Commit 37d0799

Browse files
authored
Update MainActivity.kt
1 parent c21d6aa commit 37d0799

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/src/main/kotlin/com/dev/debloater/MainActivity.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ import androidx.activity.ComponentActivity
1111
import androidx.activity.OnBackPressedCallback
1212
import androidx.activity.compose.setContent
1313
import androidx.compose.animation.AnimatedContent
14-
import androidx.compose.animation.AnimatedContentTransitionScope
1514
import androidx.compose.animation.fadeIn
1615
import androidx.compose.animation.fadeOut
1716
import androidx.compose.animation.slideInHorizontally
18-
import androidx.compose.animation.slideIntoContainer
1917
import androidx.compose.animation.slideOutHorizontally
20-
import androidx.compose.animation.slideOutOfContainer
2118
import androidx.compose.animation.togetherWith
2219
import androidx.compose.animation.core.tween
2320
import androidx.compose.foundation.Image
@@ -223,8 +220,8 @@ fun DebloaterScreen(snackbarHostState: SnackbarHostState) {
223220
AnimatedContent(
224221
targetState = currentScreen,
225222
transitionSpec = {
226-
(fadeIn(tween(300)) + slideIntoContainer(AnimatedContentTransitionScope.SlideDirection.Left))
227-
.togetherWith(fadeOut(tween(300)) + slideOutOfContainer(AnimatedContentTransitionScope.SlideDirection.Right))
223+
(fadeIn(tween(300)) + slideInHorizontally { it })
224+
.togetherWith(fadeOut(tween(300)) + slideOutHorizontally { -it })
228225
},
229226
label = "screen_transition"
230227
) { screen ->
@@ -449,7 +446,6 @@ fun OnboardingScreen(onComplete: () -> Unit) {
449446
ShizukuManager.requestPermissionAndBind()
450447
onComplete()
451448
}
452-
}
453449
},
454450
enabled = if (currentStep == 1) hasConfirmedWarning else true
455451
) {

0 commit comments

Comments
 (0)