Revision 7e9139c1
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
236 | 236 |
{ |
237 | 237 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "New downloaded object "+shortName+" is already built-in, deleting"); |
238 | 238 |
|
239 |
mDownloadedObjects.remove(obj); |
|
239 | 240 |
RubikFiles files = RubikFiles.getInstance(); |
240 | 241 |
files.deleteIcon(context,shortName); |
241 | 242 |
files.deleteJsonObject(context,shortName); |
... | ... | |
292 | 293 |
|
293 | 294 |
String objects = downloadedObjects.toString(); |
294 | 295 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "saving: "+objects); |
295 |
|
|
296 | 296 |
editor.putString("rol_downloaded", objects ); |
297 | 297 |
} |
298 |
else |
|
299 |
{ |
|
300 |
editor.putString("rol_downloaded", "" ); |
|
301 |
} |
|
298 | 302 |
} |
299 | 303 |
|
300 | 304 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Bugfix: in addition to deleting the files from local storage, also delete mentions of downloadable-but-now-built-in objects from Shared Prefs.