Revision a6d3b158
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/uistate/RubikStateSolving.java | ||
---|---|---|
22 | 22 |
import android.content.SharedPreferences; |
23 | 23 |
import android.util.DisplayMetrics; |
24 | 24 |
import android.view.LayoutInflater; |
25 |
import android.view.View; |
|
25 | 26 |
import android.widget.Button; |
26 | 27 |
import android.widget.LinearLayout; |
27 | 28 |
import android.widget.TextView; |
... | ... | |
60 | 61 |
|
61 | 62 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
62 | 63 |
|
63 |
void enterState(RubikActivity act, RubikState prev)
|
|
64 |
void enterState(final RubikActivity act)
|
|
64 | 65 |
{ |
65 | 66 |
LayoutInflater inflater = act.getLayoutInflater(); |
66 | 67 |
|
... | ... | |
87 | 88 |
mBack.setId(BUTTON_ID_BACK); |
88 | 89 |
mBack.setPadding(padding,0,padding,0); |
89 | 90 |
mBack.setText(R.string.back); |
90 |
mBack.setOnClickListener(act); |
|
91 |
|
|
92 |
mBack.setOnClickListener( new View.OnClickListener() |
|
93 |
{ |
|
94 |
@Override |
|
95 |
public void onClick(View v) |
|
96 |
{ |
|
97 |
RubikState.goBack(act); |
|
98 |
} |
|
99 |
}); |
|
100 |
|
|
91 | 101 |
layoutRight.addView(mBack); |
92 | 102 |
} |
93 | 103 |
|
Also available in: Unified diff
Progress with Pretty Patterns.