Revision 1c04d054
Added by Leszek Koltunski 8 months ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import org.distorted.external.RubikFiles; |
19 | 19 |
import org.distorted.external.RubikScores; |
20 |
import org.distorted.main.RubikActivity; |
|
21 | 20 |
import org.distorted.objectlib.signature.ObjectConstants; |
22 | 21 |
import org.distorted.objectlib.main.ObjectType; |
23 | 22 |
|
24 |
import static org.distorted.main.RubikActivity.SHOW_IAP_DEBUG; |
|
25 |
import static org.distorted.main.RubikActivity.USE_IAP; |
|
23 |
import static org.distorted.main_old.RubikActivity.SHOW_IAP_DEBUG;
|
|
24 |
import static org.distorted.main_old.RubikActivity.USE_IAP;
|
|
26 | 25 |
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE; |
27 | 26 |
import static org.distorted.objectlib.main.ObjectType.NUM_OBJECTS; |
28 |
import static org.distorted.main.RubikActivity.SHOW_DOWNLOADED_DEBUG; |
|
27 |
import static org.distorted.main_old.RubikActivity.SHOW_DOWNLOADED_DEBUG;
|
|
29 | 28 |
import static org.distorted.screens.RubikScreenPlay.LEVELS_SHOWN; |
30 | 29 |
|
31 | 30 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
208 | 207 |
|
209 | 208 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Updating downloaded object "+shortName+" icon="+obj.icon+" object="+obj.object+" extras="+obj.extras); |
210 | 209 |
|
211 |
try |
|
212 |
{ |
|
213 |
RubikActivity ract = (RubikActivity)context; |
|
214 |
ract.reloadObject(shortName); |
|
215 |
} |
|
216 |
catch(Exception ex) |
|
217 |
{ |
|
218 |
android.util.Log.e("D", "exception trying to reload object: "+ex.getMessage() ); |
|
219 |
} |
|
220 |
|
|
221 | 210 |
return false; |
222 | 211 |
} |
223 | 212 |
} |
Also available in: Unified diff
Major progress to version 2.0.0.