Revision d9d2c5fb
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
285 | 285 |
|
286 | 286 |
public static void restorePreferences(SharedPreferences preferences) |
287 | 287 |
{ |
288 |
RubikObject object = getObject(DEF_OBJECT); |
|
289 |
String defName = object==null ? "CUBE_3" : object.getUpperName(); |
|
290 |
String objName= preferences.getString("rol_objName",defName); |
|
291 |
mObject = getOrdinal(objName); |
|
292 |
|
|
293 |
if( mObject<0 || mObject>=mNumObjects ) mObject = DEF_OBJECT; |
|
294 |
|
|
295 | 288 |
String downloaded = preferences.getString("rol_downloaded",""); |
296 | 289 |
|
297 | 290 |
android.util.Log.e("D", downloaded); |
... | ... | |
326 | 319 |
} |
327 | 320 |
} |
328 | 321 |
} |
322 |
|
|
323 |
RubikObject object = getObject(DEF_OBJECT); |
|
324 |
String defName = object==null ? "CUBE_3" : object.getUpperName(); |
|
325 |
String objName= preferences.getString("rol_objName",defName); |
|
326 |
mObject = getOrdinal(objName); |
|
327 |
if( mObject<0 || mObject>=mNumObjects ) mObject = DEF_OBJECT; |
|
329 | 328 |
} |
330 | 329 |
|
331 | 330 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Downloaded Objects: bugfix