Skip to content

Commit

Permalink
Updated resources
Browse files Browse the repository at this point in the history
  • Loading branch information
amatellanes committed Sep 9, 2013
1 parent f430734 commit 04a5c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/values/provincias_espana.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>

<!-- Each position of id refers to an string array -->
<array name="array_localidades">
<array name="array_provincia_a_localidades">
<item>@array/localidades_albacete</item>
<item>@array/localidades_alava</item>
<item>@array/localidades_alicante</item>
Expand Down
2 changes: 1 addition & 1 deletion src/com/amatellanes/android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void onItemSelected(AdapterView<?> parent, View view, int pos,

// Retrieves an array
TypedArray arrayLocalidades = getResources().obtainTypedArray(
R.array.array_localidades);
R.array.array_provincia_a_localidades);
CharSequence[] localidades = arrayLocalidades.getTextArray(pos);
arrayLocalidades.recycle();

Expand Down

0 comments on commit 04a5c19

Please sign in to comment.