Revision 4f36e418
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/states/RubikStateSolving.java | ||
---|---|---|
108 | 108 |
LinearLayout layoutLeft = act.findViewById(R.id.mainBarLeft); |
109 | 109 |
layoutLeft.removeAllViews(); |
110 | 110 |
|
111 |
if( mPrevButton==null ) setupPrevMoveButtom(act,scale);
|
|
111 |
setupPrevMoveButtom(act,scale); |
|
112 | 112 |
layoutLeft.addView(mPrevButton); |
113 | 113 |
|
114 | 114 |
LinearLayout layoutRight = act.findViewById(R.id.mainBarRight); |
... | ... | |
214 | 214 |
|
215 | 215 |
public void savePreferences(SharedPreferences.Editor editor) |
216 | 216 |
{ |
217 |
mPrevButton = null; |
|
218 |
|
|
219 | 217 |
mElapsed = System.currentTimeMillis()-mStartTime; |
220 | 218 |
editor.putLong("stateSolving_elapsed" , mElapsed); |
221 | 219 |
mScores.savePreferences(editor); |
Also available in: Unified diff
Hopefully get rid of the most common crash in the field right now by changing the States to always create all their Views from scratch.