Project

General

Profile

« Previous | Next » 

Revision 52547ba7

Added by Leszek Koltunski over 2 years ago

Simplification

View differences:

src/main/java/org/distorted/screens/RubikScreenPattern.java
20 20
package org.distorted.screens;
21 21

  
22 22
import android.content.SharedPreferences;
23
import android.os.Bundle;
24 23
import androidx.fragment.app.FragmentManager;
25 24
import android.util.TypedValue;
26 25
import android.view.Gravity;
......
78 77
    float width = act.getScreenWidthInPixels();
79 78
    mButtonSize = width*RubikActivity.BUTTON_TEXT_SIZE;
80 79
    float titleSize  = width*RubikActivity.TITLE_TEXT_SIZE;
81
    mPatternOrdinal = getPatternOrdinal();
82 80
    LayoutInflater inflater = act.getLayoutInflater();
83 81

  
84 82
    // TOP ////////////////////////////
......
128 126
  private void showDialog(FragmentManager manager)
129 127
    {
130 128
    RubikDialogPattern diag = new RubikDialogPattern();
131
    Bundle bundle = new Bundle();
132
    bundle.putInt("tab", mPatternOrdinal );
133
    diag.setArguments(bundle);
134 129
    diag.show( manager, RubikDialogPattern.getDialogTag() );
135 130
    }
136 131

  

Also available in: Unified diff