Revision 318c0a7d
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/dialogs/RubikDialogScores.java | ||
---|---|---|
38 | 38 |
import android.widget.ImageView; |
39 | 39 |
import android.widget.TextView; |
40 | 40 |
|
41 |
import org.distorted.objectlib.main.ObjectList;
|
|
41 |
import org.distorted.objectlib.main.ObjectType;
|
|
42 | 42 |
|
43 | 43 |
import org.distorted.main.R; |
44 | 44 |
import org.distorted.main.RubikActivity; |
... | ... | |
104 | 104 |
tabLayout.setupWithViewPager(viewPager); |
105 | 105 |
|
106 | 106 |
viewPager.setCurrentItem(curTab); |
107 |
ObjectList list;
|
|
107 |
ObjectType list;
|
|
108 | 108 |
int iconSize = RubikActivity.getDrawableSize(); |
109 | 109 |
|
110 |
for (int object = 0; object< ObjectList.NUM_OBJECTS; object++)
|
|
110 |
for (int object = 0; object< ObjectType.NUM_OBJECTS; object++)
|
|
111 | 111 |
{ |
112 |
list = ObjectList.getObject(object);
|
|
112 |
list = ObjectType.getObject(object);
|
|
113 | 113 |
int iconID = list.getIconID(iconSize); |
114 | 114 |
ImageView imageView = new ImageView(act); |
115 | 115 |
imageView.setImageResource(iconID); |
Also available in: Unified diff
Reename ObjectList to a more logical ObjectType.