Fix compilation errors with unresolved references

This commit is contained in:
cmclark00 2025-03-31 17:15:58 -04:00
parent 1f400238e5
commit fad3e0863c

View file

@ -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()
}
}