Revision 314e9ff0
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/config/ConfigScreen.java | ||
---|---|---|
96 | 96 |
for(int object=0; object<numObjects; object++) |
97 | 97 |
{ |
98 | 98 |
final int ordinal = object; |
99 |
RubikObject rubikObject = RubikObjectList.getObject(ordinal); |
|
100 |
int icons = rubikObject.getIconID(); |
|
99 |
RubikObject rObject = RubikObjectList.getObject(ordinal); |
|
101 | 100 |
int row = object/NUM_COLUMNS; |
102 |
|
|
103 | 101 |
ImageButton button = new ImageButton(act); |
104 |
button.setBackgroundResource(icons); |
|
102 |
if( rObject!=null ) rObject.setIconTo(button); |
|
103 |
|
|
105 | 104 |
button.setOnClickListener( new View.OnClickListener() |
106 | 105 |
{ |
107 | 106 |
@Override |
Also available in: Unified diff
Refactor RubikObject in preparation for creating RubikObjects from DownloadedObjects.