summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/SavedWallpaperImages.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-10-16 18:23:56 -0700
committerMichael Jurka <mikejurka@google.com>2013-10-21 14:51:49 -0700
commit862f7e395004b00d871cbe507fd5f2a70c797ef7 (patch)
treec8372d4947e06cd8591bd590a2820c97c12ac76b /src/com/android/launcher3/SavedWallpaperImages.java
parent4f98332b98bbe95cb0574e51ef1514bade9a5e76 (diff)
downloadandroid_packages_apps_Trebuchet-862f7e395004b00d871cbe507fd5f2a70c797ef7.tar.gz
android_packages_apps_Trebuchet-862f7e395004b00d871cbe507fd5f2a70c797ef7.tar.bz2
android_packages_apps_Trebuchet-862f7e395004b00d871cbe507fd5f2a70c797ef7.zip
Load images on a bg thread
Bug: 11134758 Change-Id: Ie789a2fcb2024832ac104cd9cdbc3602abee85ee
Diffstat (limited to 'src/com/android/launcher3/SavedWallpaperImages.java')
-rw-r--r--src/com/android/launcher3/SavedWallpaperImages.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/com/android/launcher3/SavedWallpaperImages.java b/src/com/android/launcher3/SavedWallpaperImages.java
index c19692b9a..086d08580 100644
--- a/src/com/android/launcher3/SavedWallpaperImages.java
+++ b/src/com/android/launcher3/SavedWallpaperImages.java
@@ -60,13 +60,9 @@ public class SavedWallpaperImages extends BaseAdapter implements ListAdapter {
public void onClick(WallpaperPickerActivity a) {
String imageFilename = a.getSavedImages().getImageFilename(mDbId);
File file = new File(a.getFilesDir(), imageFilename);
- CropView v = a.getCropView();
- int rotation = WallpaperCropActivity.getRotationFromExif(file.getAbsolutePath());
- a.getDefaultWallpaperView().setVisibility(View.INVISIBLE);
- v.setTileSource(
- new BitmapRegionTileSource(a, file.getAbsolutePath(), 1024, rotation), null);
- v.moveToLeft();
- v.setTouchEnabled(false);
+ BitmapRegionTileSource.FilePathBitmapSource bitmapSource =
+ new BitmapRegionTileSource.FilePathBitmapSource(file.getAbsolutePath(), 1024);
+ a.setCropViewTileSource(bitmapSource, false, true);
}
@Override
public void onSave(WallpaperPickerActivity a) {