mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-17 21:45:21 +01:00
Fix compilation errors with unresolved references
This commit is contained in:
parent
1f400238e5
commit
fad3e0863c
1 changed files with 13 additions and 2 deletions
|
@ -85,6 +85,7 @@ class MainActivity : AppCompatActivity(),
|
|||
private var lastRandomLevel = 0 // Track the level at which we last did a random change
|
||||
private var isRandomModeEnabled = false
|
||||
private var currentTheme = PlayerProgressionManager.THEME_CLASSIC
|
||||
private val handler = Handler(Looper.getMainLooper())
|
||||
|
||||
// Activity result launcher for high score entry
|
||||
private lateinit var highScoreEntryLauncher: ActivityResultLauncher<Intent>
|
||||
|
@ -172,8 +173,13 @@ class MainActivity : AppCompatActivity(),
|
|||
binding.gameOverContainer.visibility = View.VISIBLE
|
||||
binding.gameControlsContainer.visibility = View.GONE
|
||||
|
||||
// Get all themes with "Theme" in their name
|
||||
val themeRewards = progressionManager.getUnlockedThemes().filter {
|
||||
it.contains("Theme", ignoreCase = true)
|
||||
}
|
||||
|
||||
// Update theme selector if new themes were unlocked
|
||||
if (newRewards.any { it.contains("Theme") }) {
|
||||
if (themeRewards.isNotEmpty()) {
|
||||
updateThemeSelector()
|
||||
}
|
||||
}
|
||||
|
@ -500,8 +506,13 @@ class MainActivity : AppCompatActivity(),
|
|||
binding.gameOverContainer.visibility = View.VISIBLE
|
||||
binding.gameControlsContainer.visibility = View.GONE
|
||||
|
||||
// Get all themes with "Theme" in their name
|
||||
val themeRewards = progressionManager.getUnlockedThemes().filter {
|
||||
it.contains("Theme", ignoreCase = true)
|
||||
}
|
||||
|
||||
// Update theme selector if new themes were unlocked
|
||||
if (newRewards.any { it.contains("Theme") }) {
|
||||
if (themeRewards.isNotEmpty()) {
|
||||
updateThemeSelector()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue