fix: persist block skin selection through app restarts

This commit is contained in:
cmclark00 2025-03-28 19:36:14 -04:00
parent 1c57c438ce
commit 2774703df5
3 changed files with 25 additions and 13 deletions

View file

@ -98,6 +98,13 @@ class MainActivity : AppCompatActivity() {
// Load and apply block skin preference
gameView.setBlockSkin(progressionManager.getSelectedBlockSkin())
// Update block skin selector with current selection
blockSkinSelector.updateBlockSkins(
progressionManager.getUnlockedBlocks(),
gameView.getCurrentBlockSkin(),
progressionManager.getPlayerLevel()
)
// Set up game view
gameView.setGameBoard(gameBoard)
gameView.setHaptics(gameHaptics)