Revision b2c7ce86
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/main/RubikActivity.java | ||
---|---|---|
44 | 44 |
import org.distorted.objectlib.main.InitAssets; |
45 | 45 |
import org.distorted.objectlib.main.ObjectControl; |
46 | 46 |
import org.distorted.objectlib.main.TwistyObject; |
47 |
import org.distorted.objectlib.effects.BaseEffect; |
|
48 | 47 |
|
49 | 48 |
import org.distorted.dialogs.RubikDialogError; |
50 | 49 |
import org.distorted.dialogs.RubikDialogPrivacy; |
... | ... | |
342 | 341 |
editor.putString("appVersion", mCurrVersion ); |
343 | 342 |
editor.putInt("solverIndex", mSolverIndex ); |
344 | 343 |
|
345 |
for (int i=0; i<BaseEffect.Type.LENGTH; i++) |
|
346 |
{ |
|
347 |
BaseEffect.Type.getType(i).savePreferences(editor); |
|
348 |
} |
|
349 |
|
|
350 | 344 |
for (int i = 0; i< ScreenList.LENGTH; i++) |
351 | 345 |
{ |
352 | 346 |
ScreenList.getScreen(i).getScreenClass().savePreferences(editor); |
... | ... | |
387 | 381 |
|
388 | 382 |
RubikObjectList.restorePreferences(this,preferences,justStarted); |
389 | 383 |
|
390 |
for (int i=0; i<BaseEffect.Type.LENGTH; i++) |
|
391 |
{ |
|
392 |
BaseEffect.Type.getType(i).restorePreferences(preferences); |
|
393 |
} |
|
394 |
|
|
395 | 384 |
for (int i=0; i<ScreenList.LENGTH; i++) |
396 | 385 |
{ |
397 | 386 |
ScreenList.getScreen(i).getScreenClass().restorePreferences(preferences); |
Also available in: Unified diff
Start moving the SharedPreferences to the OSInterface