Skip to content

Commit

Permalink
Fixed update popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliano101 committed Nov 7, 2024
1 parent 4030f50 commit ef22a3a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/src/main/java/com/maxrave/simpmusic/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ class MainActivity : AppCompatActivity() {
// WindowCompat.setDecorFitsSystemWindows(window, false)
enableEdgeToEdge(
navigationBarStyle =
SystemBarStyle.auto(
lightScrim = Color.Transparent.toArgb(),
darkScrim = Color.Transparent.toArgb(),
),
SystemBarStyle.auto(
lightScrim = Color.Transparent.toArgb(),
darkScrim = Color.Transparent.toArgb(),
),
)
viewModel.checkIsRestoring()
viewModel.runWorker()
Expand Down Expand Up @@ -347,7 +347,7 @@ class MainActivity : AppCompatActivity() {
R.id.bottom_navigation_item_library, R.id.downloadedFragment,
R.id.mostPlayedFragment, R.id.followedFragment,
R.id.favoriteFragment, R.id.localPlaylistFragment,
-> {
-> {
binding.bottomNavigationView.menu
.findItem(
R.id.bottom_navigation_item_library,
Expand Down Expand Up @@ -399,7 +399,7 @@ class MainActivity : AppCompatActivity() {
"fragment_log_in",
"MusixmatchFragment",
)
).contains(destination.label)
).contains(destination.label)
) {
lifecycleScope.launch { viewModel.showOrHideMiniplayer.emit(false) }
Log.w("MainActivity", "onCreate: HIDE MINIPLAYER")
Expand Down Expand Up @@ -599,7 +599,7 @@ class MainActivity : AppCompatActivity() {
"fragment_log_in",
"MusixmatchFragment",
)
).contains(navController.currentDestination?.label) &&
).contains(navController.currentDestination?.label) &&
it.nowPlayingTitle.isNotEmpty() &&
binding.miniplayer.visibility != View.VISIBLE
) {
Expand Down Expand Up @@ -827,7 +827,7 @@ class MainActivity : AppCompatActivity() {
}
return false
} catch (_: Exception) {
return true
return false // Switch to true for strict check
}
}

Expand Down

0 comments on commit ef22a3a

Please sign in to comment.