project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/StartGameActivity.java
equal
deleted
inserted
replaced
140 |
140 |
141 private OnItemSelectedListener themesClicker = new OnItemSelectedListener(){ |
141 private OnItemSelectedListener themesClicker = new OnItemSelectedListener(){ |
142 |
142 |
143 public void onItemSelected(AdapterView<?> arg0, View view, int position, long rowId) { |
143 public void onItemSelected(AdapterView<?> arg0, View view, int position, long rowId) { |
144 String themeName = (String) arg0.getAdapter().getItem(position); |
144 String themeName = (String) arg0.getAdapter().getItem(position); |
145 Drawable themeIconDrawable = Drawable.createFromPath(Utils.getDownloadPath(StartGameActivity.this) + "Themes/" + themeName + "/icon@2X.png"); |
145 Drawable themeIconDrawable = Drawable.createFromPath(Utils.getDataPath(StartGameActivity.this) + "Themes/" + themeName + "/icon@2X.png"); |
146 themeIcon.setImageDrawable(themeIconDrawable); |
146 themeIcon.setImageDrawable(themeIconDrawable); |
147 config.theme = themeName; |
147 config.theme = themeName; |
148 } |
148 } |
149 |
149 |
150 public void onNothingSelected(AdapterView<?> arg0) { |
150 public void onNothingSelected(AdapterView<?> arg0) { |