Revision 314e9ff0
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/config/ConfigScreenPane.java | ||
---|---|---|
28 | 28 |
import android.widget.RadioGroup; |
29 | 29 |
import android.widget.TextView; |
30 | 30 |
|
31 |
import org.distorted.jsons.ObjectJson; |
|
32 | 31 |
import org.distorted.main.R; |
33 | 32 |
import org.distorted.objectlib.json.JsonReader; |
34 | 33 |
import org.distorted.objects.RubikObject; |
... | ... | |
76 | 75 |
mObjectOrdinal = objectOrdinal; |
77 | 76 |
|
78 | 77 |
RubikObject object = RubikObjectList.getObject(objectOrdinal); |
79 |
int jsonID = object.getJsonID(); |
|
80 |
InputStream stream = ObjectJson.getObjectStream(jsonID,act); |
|
78 |
InputStream stream = object.getObjectStream(act); |
|
81 | 79 |
reader.parseJsonFileMetadata(stream); |
82 | 80 |
|
83 | 81 |
String name = reader.getObjectName(); |
Also available in: Unified diff
Refactor RubikObject in preparation for creating RubikObjects from DownloadedObjects.