mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 10:25:19 +01:00
fix: persist block skin selection through app restarts
This commit is contained in:
parent
1c57c438ce
commit
2774703df5
3 changed files with 25 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue