project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/TeamCreatorActivity.java
equal
deleted
inserted
replaced
177 |
177 |
178 copy(hatsData, hatsDataNew); |
178 copy(hatsData, hatsDataNew); |
179 ((SimpleAdapter)hogHat.get(0).getAdapter()).notifyDataSetChanged(); |
179 ((SimpleAdapter)hogHat.get(0).getAdapter()).notifyDataSetChanged(); |
180 |
180 |
181 copy(voicesData, voicesDataNew); |
181 copy(voicesData, voicesDataNew); |
182 ((ArrayAdapter<String>)fort.getAdapter()).notifyDataSetChanged(); |
182 ((ArrayAdapter<String>)voice.getAdapter()).notifyDataSetChanged(); |
183 |
183 |
184 copy(fortsData, fortsDataNew); |
184 copy(fortsData, fortsDataNew); |
185 ((ArrayAdapter<String>)voice.getAdapter()).notifyDataSetChanged(); |
185 ((ArrayAdapter<String>)fort.getAdapter()).notifyDataSetChanged(); |
186 } |
186 } |
187 }); |
187 }); |
188 |
188 |
189 } |
189 } |
190 |
190 |
281 } |
281 } |
282 |
282 |
283 }; |
283 }; |
284 |
284 |
285 private OnItemSelectedListener fortSelector = new OnItemSelectedListener() { |
285 private OnItemSelectedListener fortSelector = new OnItemSelectedListener() { |
286 @SuppressWarnings("unchecked") |
|
287 public void onItemSelected(AdapterView<?> arg0, View arg1, |
286 public void onItemSelected(AdapterView<?> arg0, View arg1, |
288 int position, long arg3) { |
287 int position, long arg3) { |
289 settingsChanged = true; |
288 settingsChanged = true; |
290 String fortName = (String) arg0.getAdapter().getItem(position); |
289 String fortName = (String) arg0.getAdapter().getItem(position); |
291 Drawable fortIconDrawable = Drawable.createFromPath(Utils |
290 Drawable fortIconDrawable = Drawable.createFromPath(Utils |