Revision bc511ea5
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/magic/RubikRenderer.java | ||
---|---|---|
23 | 23 |
import android.opengl.GLSurfaceView; |
24 | 24 |
import android.os.Bundle; |
25 | 25 |
|
26 |
import org.distorted.dialog.RubikDialogNewRecord; |
|
26 | 27 |
import org.distorted.dialog.RubikDialogSolved; |
27 | 28 |
import org.distorted.effect.BaseEffect; |
28 | 29 |
import org.distorted.library.effect.VertexEffectSink; |
... | ... | |
403 | 404 |
if( RubikState.getCurrentState()==RubikState.SOLV ) |
404 | 405 |
{ |
405 | 406 |
final RubikActivity act = (RubikActivity)mView.getContext(); |
407 |
Bundle bundle = new Bundle(); |
|
408 |
bundle.putLong("time", mNewRecord ); |
|
406 | 409 |
|
407 | 410 |
if( mIsNewRecord ) |
408 | 411 |
{ |
409 |
RubikDialogSolved dialog = new RubikDialogSolved(); |
|
410 |
|
|
411 |
Bundle bundle = new Bundle(); |
|
412 |
bundle.putLong("time", mNewRecord ); |
|
412 |
RubikDialogNewRecord dialog = new RubikDialogNewRecord(); |
|
413 | 413 |
dialog.setArguments(bundle); |
414 | 414 |
dialog.show( act.getSupportFragmentManager(), null); |
415 | 415 |
} |
416 | 416 |
else |
417 | 417 |
{ |
418 | 418 |
RubikDialogSolved dialog = new RubikDialogSolved(); |
419 |
|
|
420 |
Bundle bundle = new Bundle(); |
|
421 |
bundle.putLong("time", mNewRecord ); |
|
422 | 419 |
dialog.setArguments(bundle); |
423 | 420 |
dialog.show( act.getSupportFragmentManager(), null); |
424 | 421 |
} |
Also available in: Unified diff
Add the 'New Record' dialog.