Revision 8ab435b9
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java | ||
---|---|---|
38 | 38 |
import org.distorted.main.R; |
39 | 39 |
import org.distorted.main.RubikActivity; |
40 | 40 |
import org.distorted.network.RubikScores; |
41 |
import org.distorted.objectlib.main.ObjectType; |
|
41 | 42 |
import org.distorted.screens.ScreenList; |
42 | 43 |
import org.distorted.screens.RubikScreenPlay; |
43 | 44 |
|
... | ... | |
79 | 80 |
if( name.length()>0 ) |
80 | 81 |
{ |
81 | 82 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
82 |
int object = play.getObject();
|
|
83 |
ObjectType object = play.getObject();
|
|
83 | 84 |
|
84 |
bundle.putInt("tab", object ); |
|
85 |
bundle.putInt("tab", object.ordinal() );
|
|
85 | 86 |
bundle.putBoolean("submitting", true); |
86 | 87 |
|
87 | 88 |
RubikDialogScores scoresDiag = new RubikDialogScores(); |
Also available in: Unified diff
1. Remove 'db level' from objectlib (this belongs to the app!)
2. change ScreenPlay's 'mObject' to be an ObjectType.