Revision e9e744f7
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/dialogs/RubikDialogUpdateView.java | ||
---|---|---|
194 | 194 |
try |
195 | 195 |
{ |
196 | 196 |
JsonReader reader = JsonReader.getInstance(); |
197 |
reader.readNumScramblesAndIsFree(act,objectName);
|
|
197 |
reader.readNumScramblesAndPrice(act,objectName);
|
|
198 | 198 |
mInfo.mNumScrambles = reader.getNumScrambles(); |
199 |
mInfo.mIsFree = reader.isFree();
|
|
200 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Read from JSON numScrambles="+mInfo.mNumScrambles+" isFree="+mInfo.mIsFree);
|
|
199 |
mInfo.mPrice = reader.getPrice();
|
|
200 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Read from JSON numScrambles="+mInfo.mNumScrambles+" price="+mInfo.mPrice);
|
|
201 | 201 |
|
202 | 202 |
if( mInfo.mExtrasStream!=null ) |
203 | 203 |
{ |
... | ... | |
213 | 213 |
|
214 | 214 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "1"); |
215 | 215 |
|
216 |
boolean success = RubikObjectList.addDownloadedObject(act, mInfo.mObjectShortName, mInfo.mNumScrambles, mInfo.mIsFree,
|
|
216 |
boolean success = RubikObjectList.addDownloadedObject(act, mInfo.mObjectShortName, mInfo.mNumScrambles, mInfo.mPrice,
|
|
217 | 217 |
mInfo.mObjectMinorVersion, mInfo.mExtrasMinorVersion, mIconSaved, oSuccess, eSuccess); |
218 | 218 |
if( success ) |
219 | 219 |
{ |
Also available in: Unified diff
Changes to the initialization - initialize the 'bought objects'