Revision b498f3f6
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialog/RubikDialogPatternPagerAdapter.java | ||
---|---|---|
27 | 27 |
import android.view.ViewGroup; |
28 | 28 |
|
29 | 29 |
import org.distorted.patterns.RubikPattern; |
30 |
import org.distorted.patterns.RubikPatternList; |
|
30 | 31 |
|
31 | 32 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
32 | 33 |
|
... | ... | |
43 | 44 |
{ |
44 | 45 |
mAct = act; |
45 | 46 |
mDialog = dialog; |
46 |
mNumTabs = RubikPattern.NUM_CUBES;
|
|
47 |
mNumTabs = RubikPatternList.NUM_OBJECTS;
|
|
47 | 48 |
mViews = new RubikDialogPatternView[mNumTabs]; |
48 | 49 |
|
49 | 50 |
viewPager.setAdapter(this); |
Also available in: Unified diff
Introduce RubikPatternsList. Now, if one wants to contribute patterns for a new object, all one has to be is give the list of strings describing the patterns and add them to the List.