summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher/WallpaperChooser.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:05 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:05 -0800
commit15a8880cb1b9010ce4503c10c1666568d49415b1 (patch)
tree29fa05cbaa19101da95b010de82290cebfb6d092 /src/com/android/launcher/WallpaperChooser.java
parentbb96f41aa99687260370cf8cdee7683653e538a7 (diff)
downloadandroid_packages_apps_Trebuchet-15a8880cb1b9010ce4503c10c1666568d49415b1.tar.gz
android_packages_apps_Trebuchet-15a8880cb1b9010ce4503c10c1666568d49415b1.tar.bz2
android_packages_apps_Trebuchet-15a8880cb1b9010ce4503c10c1666568d49415b1.zip
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'src/com/android/launcher/WallpaperChooser.java')
-rw-r--r--src/com/android/launcher/WallpaperChooser.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/launcher/WallpaperChooser.java b/src/com/android/launcher/WallpaperChooser.java
index afbe6f352..1eb8d0cb3 100644
--- a/src/com/android/launcher/WallpaperChooser.java
+++ b/src/com/android/launcher/WallpaperChooser.java
@@ -123,9 +123,6 @@ public class WallpaperChooser extends Activity implements AdapterView.OnItemSele
final String[] extras = resources.getStringArray(R.array.extra_wallpapers);
final String packageName = getApplication().getPackageName();
- final ArrayList<Integer> images = mImages;
- final ArrayList<Integer> thumbs = mThumbs;
-
for (String extra : extras) {
int res = resources.getIdentifier(extra, "drawable", packageName);
if (res != 0) {
@@ -133,8 +130,8 @@ public class WallpaperChooser extends Activity implements AdapterView.OnItemSele
"drawable", packageName);
if (thumbRes != 0) {
- images.add(res);
- thumbs.add(res);
+ mThumbs.add(res);
+ mImages.add(res);
}
}
}
@@ -148,7 +145,7 @@ public class WallpaperChooser extends Activity implements AdapterView.OnItemSele
public void onItemSelected(AdapterView parent, View v, int position, long id) {
final ImageView view = mImageView;
- Bitmap b = BitmapFactory.decodeResource(getResources(), IMAGE_IDS[position], mOptions);
+ Bitmap b = BitmapFactory.decodeResource(getResources(), mImages.get(position), mOptions);
view.setImageBitmap(b);
// Help the GC