Revision d38a302b
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/screens/RubikScreenPlay.java | ||
---|---|---|
172 | 172 |
|
173 | 173 |
if( act.getControl().isUINotBlocked()) |
174 | 174 |
{ |
175 |
adjustSolvedIcons(); |
|
175 | 176 |
float height= act.getScreenHeightInPixels(); |
176 | 177 |
final int maxHeight= (int)(0.9f*(height-mUpperBarHeight) ); |
177 | 178 |
View popupView = mPlayPopup.getContentView(); |
... | ... | |
479 | 480 |
|
480 | 481 |
public void savePreferences(SharedPreferences.Editor editor) |
481 | 482 |
{ |
483 |
editor.putInt("play_LevelValue", mLevelValue ); |
|
484 |
|
|
482 | 485 |
if( mObjectPopup!=null ) |
483 | 486 |
{ |
484 | 487 |
mObjectPopup.dismiss(); |
... | ... | |
502 | 505 |
|
503 | 506 |
public void restorePreferences(SharedPreferences preferences) |
504 | 507 |
{ |
505 |
|
|
508 |
mLevelValue = preferences.getInt("play_LevelValue", 0); |
|
506 | 509 |
} |
507 | 510 |
|
508 | 511 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
559 | 562 |
|
560 | 563 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
561 | 564 |
|
562 |
public void adjustSolvedIcons()
|
|
565 |
private void adjustSolvedIcons()
|
|
563 | 566 |
{ |
564 | 567 |
if( mPlayLayout!=null ) |
565 | 568 |
{ |
Also available in: Unified diff
Crash fix. Also a fix for the fact that if we started solving, went out of the app, and resumed solving - the record wasn't remembered.