Skip to content

Commit e631e41

Browse files
committed
chore(top bar): reuse main page check
1 parent e584129 commit e631e41

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • ZalithLauncher/src/main/java/com/movtery/zalithlauncher/ui/screens/main

ZalithLauncher/src/main/java/com/movtery/zalithlauncher/ui/screens/main/MainScreen.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,10 @@ private fun TopBar(
305305
}
306306
) {
307307
Crossfade(
308-
targetState = mainScreenKey,
308+
targetState = inLauncherScreen,
309309
label = "SettingsIconCrossfade",
310310
animationSpec = getAnimateTween()
311-
) { key ->
312-
val isLauncherScreen = key === NormalNavKey.LauncherMain
311+
) { isLauncherScreen ->
313312
Icon(
314313
imageVector = if (isLauncherScreen) {
315314
Icons.Filled.Settings

0 commit comments

Comments
 (0)