Skip to content
Snippets Groups Projects
Commit 3224aef5 authored by Frantisek Simon's avatar Frantisek Simon
Browse files

#337 Fixed victory dialog

parent 3fce1f02
Branches
Tags
No related merge requests found
......@@ -788,7 +788,12 @@ public abstract class AbstractTablexiaGame<T> extends AbstractTablexiaScreen<T>
handleTrophies();
victoryDialog.show(DIALOG_WIDTH, DIALOG_HEIGHT);
animateAndPlayVictoryDialogSounds(gameResult, cupsImages);
victoryDialog.setComponentsSizeComputedCallback(new Runnable() {
@Override
public void run() {
animateAndPlayVictoryDialogSounds(gameResult, cupsImages);
}
});
}
private void animateAndPlayVictoryDialogSounds(GameResult gameResult, Image[] cups) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment