Revision eaee1ddc
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/states/RubikStatePlay.java | ||
---|---|---|
219 | 219 |
View popupView = mPlayPopup.getContentView(); |
220 | 220 |
popupView.setSystemUiVisibility(RubikActivity.FLAGS); |
221 | 221 |
|
222 |
final int sizeIndex = RubikObjectList.getSizeIndex(mObject,mSize); |
|
223 |
final int maxLevel = RubikObjectList.getMaxLevel(mObject, sizeIndex); |
|
224 |
final int levelsShown = Math.min(maxLevel,LEVELS_SHOWN); |
|
225 |
|
|
222 | 226 |
mPlayPopup.showAsDropDown(view, margin, margin, Gravity.RIGHT); |
223 |
mPlayPopup.update(view, mPlayLayoutWidth, (int)(LEVELS_SHOWN*(mMenuItemSize+margin)+margin));
|
|
227 |
mPlayPopup.update(view, mPlayLayoutWidth, (int)(levelsShown*(mMenuItemSize+margin)+2*margin));
|
|
224 | 228 |
|
225 | 229 |
mPlayPopup.setFocusable(true); |
226 | 230 |
mPlayPopup.update(); |
Also available in: Unified diff
Add the 4-color Dino.
Still one thing needs to be done about it: randomization of Moves (now sometimes in Level 1 the randomized move leads to an already solved position)