Revision 234a7582
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/states/RubikStatePlay.java | ||
---|---|---|
32 | 32 |
import android.widget.LinearLayout; |
33 | 33 |
import android.widget.PopupWindow; |
34 | 34 |
|
35 |
import androidx.fragment.app.FragmentManager; |
|
36 |
|
|
37 | 35 |
import org.distorted.dialogs.RubikDialogAbout; |
38 |
import org.distorted.dialogs.RubikDialogInfo; |
|
39 | 36 |
import org.distorted.dialogs.RubikDialogPattern; |
40 | 37 |
import org.distorted.dialogs.RubikDialogScores; |
38 |
import org.distorted.dialogs.RubikDialogTutorial; |
|
41 | 39 |
import org.distorted.main.R; |
42 | 40 |
import org.distorted.main.RubikActivity; |
43 | 41 |
import org.distorted.objects.ObjectList; |
... | ... | |
386 | 384 |
scores.setArguments(sBundle); |
387 | 385 |
scores.show(act.getSupportFragmentManager(), null); |
388 | 386 |
break; |
389 |
case 1: FragmentManager mana = act.getSupportFragmentManager(); |
|
390 |
RubikDialogPattern pDiag = new RubikDialogPattern(); |
|
387 |
case 1: RubikDialogPattern pDiag = new RubikDialogPattern(); |
|
391 | 388 |
Bundle pBundle = new Bundle(); |
392 |
int ordinal = getPatternOrdinal();
|
|
393 |
pBundle.putInt("tab", ordinal );
|
|
389 |
int pOrd = getPatternOrdinal();
|
|
390 |
pBundle.putInt("tab", pOrd );
|
|
394 | 391 |
pDiag.setArguments(pBundle); |
395 |
pDiag.show( mana, RubikDialogPattern.getDialogTag() );
|
|
392 |
pDiag.show( act.getSupportFragmentManager(), RubikDialogPattern.getDialogTag() );
|
|
396 | 393 |
break; |
397 | 394 |
case 2: StateList.switchState(act, StateList.SVER); |
398 | 395 |
break; |
399 |
case 3: RubikDialogInfo infoDiag = new RubikDialogInfo(); |
|
400 |
infoDiag.show(act.getSupportFragmentManager(), null); |
|
396 |
case 3: RubikDialogTutorial tDiag = new RubikDialogTutorial(); |
|
397 |
Bundle tBundle = new Bundle(); |
|
398 |
int tOrd = getTutorialOrdinal(); |
|
399 |
tBundle.putInt("tab", tOrd ); |
|
400 |
tDiag.setArguments(tBundle); |
|
401 |
tDiag.show( act.getSupportFragmentManager(), RubikDialogTutorial.getDialogTag() ); |
|
401 | 402 |
break; |
402 | 403 |
case 4: RubikDialogAbout aDiag = new RubikDialogAbout(); |
403 | 404 |
aDiag.show(act.getSupportFragmentManager(), null); |
Also available in: Unified diff
Progress creating the Tutorial Dialog.