Revision d38a302b
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/main/RubikObjectLibInterface.java | ||
---|---|---|
79 | 79 |
|
80 | 80 |
if( BuildConfig.DEBUG ) |
81 | 81 |
{ |
82 |
android.util.Log.d("pre", msg);
|
|
82 |
android.util.Log.d("libInterface", msg);
|
|
83 | 83 |
} |
84 | 84 |
else |
85 | 85 |
{ |
... | ... | |
104 | 104 |
int level = play.getLevel(); |
105 | 105 |
String name = scores.getName(); |
106 | 106 |
RubikObject obj = RubikObjectList.getObject(object); |
107 |
String objName = obj==null ? "NULL" : obj.getName(); |
|
107 | 108 |
|
108 |
String record = obj+" level "+level+" time "+mNewRecord+" isNew: "+mIsNewRecord+" scrambleNum: "+scrambleNum; |
|
109 |
String record = objName+" level "+level+" time "+mNewRecord+" isNew: "+mIsNewRecord+" scrambleNum: "+scrambleNum;
|
|
109 | 110 |
|
110 | 111 |
if( BuildConfig.DEBUG ) |
111 | 112 |
{ |
112 |
android.util.Log.e("pre", debug);
|
|
113 |
android.util.Log.e("pre", name);
|
|
114 |
android.util.Log.e("pre", record);
|
|
113 |
android.util.Log.e("libInterface", debug);
|
|
114 |
android.util.Log.e("libInterface", name);
|
|
115 |
android.util.Log.e("libInterface", record);
|
|
115 | 116 |
} |
116 | 117 |
else |
117 | 118 |
{ |
... | ... | |
316 | 317 |
else |
317 | 318 |
{ |
318 | 319 |
mIsNewRecord = true; |
319 |
RubikScreenPlay play= (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
|
320 |
play.adjustSolvedIcons(); |
|
321 | 320 |
} |
322 | 321 |
} |
323 | 322 |
} |
... | ... | |
335 | 334 |
{ |
336 | 335 |
if( BuildConfig.DEBUG ) |
337 | 336 |
{ |
338 |
android.util.Log.e("interface", problem);
|
|
337 |
android.util.Log.e("libInterface", problem);
|
|
339 | 338 |
} |
340 | 339 |
else |
341 | 340 |
{ |
... | ... | |
362 | 361 |
|
363 | 362 |
if( BuildConfig.DEBUG ) |
364 | 363 |
{ |
365 |
android.util.Log.e("D", error);
|
|
364 |
android.util.Log.e("libInterface", error);
|
|
366 | 365 |
} |
367 | 366 |
else |
368 | 367 |
{ |
... | ... | |
382 | 381 |
|
383 | 382 |
if( BuildConfig.DEBUG ) |
384 | 383 |
{ |
385 |
android.util.Log.e("D", error);
|
|
384 |
android.util.Log.e("libInterface", error);
|
|
386 | 385 |
} |
387 | 386 |
else |
388 | 387 |
{ |
... | ... | |
402 | 401 |
|
403 | 402 |
if( BuildConfig.DEBUG ) |
404 | 403 |
{ |
405 |
android.util.Log.e("D", error);
|
|
404 |
android.util.Log.e("libInterface", error);
|
|
406 | 405 |
} |
407 | 406 |
else |
408 | 407 |
{ |
Also available in: Unified diff
Crash fix. Also a fix for the fact that if we started solving, went out of the app, and resumed solving - the record wasn't remembered.