Skip to content

Commit

Permalink
Bug fix: music doesn't glitch when changing language
Browse files Browse the repository at this point in the history
  • Loading branch information
anoniim committed Jul 4, 2024
1 parent bb7ae3f commit bf81518
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/ui/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ fun AppComposable() {
AppTheme {
NavigationContent { newLocale -> locale = newLocale }
val sounds = remember { get<Sounds>(Sounds::class.java) }
sounds.backgroundMusic()
LaunchedEffect(sounds) {
sounds.backgroundMusic()
}
}
}
}
Expand Down

0 comments on commit bf81518

Please sign in to comment.