Revision 50e6c5d6
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/purchase/PurchaseActivity.java | ||
---|---|---|
24 | 24 |
import org.distorted.external.RubikScores; |
25 | 25 |
import org.distorted.library.main.DistortedLibrary; |
26 | 26 |
import org.distorted.main.R; |
27 |
import org.distorted.objectlib.main.InitAssets; |
|
27 | 28 |
import org.distorted.objectlib.main.ObjectControl; |
28 | 29 |
import org.distorted.objectlib.main.TwistyObject; |
29 | 30 |
import org.distorted.objects.RubikObject; |
... | ... | |
232 | 233 |
InputStream jsonStream = object.getObjectStream(this); |
233 | 234 |
InputStream meshStream = object.getMeshStream(this); |
234 | 235 |
String name = object.getUpperName(); |
235 |
|
|
236 |
control.changeIfDifferent(ordinal,name,meshState,iconMode,jsonStream,meshStream);
|
|
236 |
InitAssets asset = new InitAssets(jsonStream,meshStream); |
|
237 |
control.changeIfDifferent(ordinal,name,meshState,iconMode,asset);
|
|
237 | 238 |
} |
238 | 239 |
} |
239 | 240 |
|
Also available in: Unified diff
Introduce InitAssets. We'll use this later to pass on references to the tablebase file to the TwistyObject (so that it can use this for perfect scrambling)