summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-10-11 15:50:38 +0800
committerOwen Lin <owenlin@google.com>2012-10-16 10:29:28 +0800
commit030f8dad6aefc42d0af39bc1b93f370937d3e2ab (patch)
treef228c5c5786d014379afa8f4c0f53163f018a591 /src/com/android/gallery3d/util
parentff025412e2cacedd8cbb7901140e580f76634ee6 (diff)
downloadandroid_packages_apps_Gallery2-030f8dad6aefc42d0af39bc1b93f370937d3e2ab.tar.gz
android_packages_apps_Gallery2-030f8dad6aefc42d0af39bc1b93f370937d3e2ab.tar.bz2
android_packages_apps_Gallery2-030f8dad6aefc42d0af39bc1b93f370937d3e2ab.zip
Fixes bugs in TiledTexture.
1. Upload tiles in SinglePhotoDataAdapter 2. Rebuild the upload queue after the screen nails being recycled bug: 6399444 Change-Id: I57e756f8d1d84742bf82dd34c83baf8df89ae4cc
Diffstat (limited to 'src/com/android/gallery3d/util')
-rw-r--r--src/com/android/gallery3d/util/GalleryUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/util/GalleryUtils.java b/src/com/android/gallery3d/util/GalleryUtils.java
index 195552116..62f22355e 100644
--- a/src/com/android/gallery3d/util/GalleryUtils.java
+++ b/src/com/android/gallery3d/util/GalleryUtils.java
@@ -42,7 +42,7 @@ import com.android.gallery3d.app.PackagesMonitor;
import com.android.gallery3d.common.ApiHelper;
import com.android.gallery3d.data.DataManager;
import com.android.gallery3d.data.MediaItem;
-import com.android.gallery3d.ui.BitmapScreenNail;
+import com.android.gallery3d.ui.TiledScreenNail;
import com.android.gallery3d.util.ThreadPool.CancelListener;
import com.android.gallery3d.util.ThreadPool.JobContext;
@@ -81,7 +81,7 @@ public class GalleryUtils {
wm.getDefaultDisplay().getMetrics(metrics);
sPixelDensity = metrics.density;
Resources r = context.getResources();
- BitmapScreenNail.setPlaceholderColor(r.getColor(
+ TiledScreenNail.setPlaceholderColor(r.getColor(
R.color.bitmap_screennail_placeholder));
initializeThumbnailSizes(metrics, r);
}
@@ -91,7 +91,7 @@ public class GalleryUtils {
// Never need to completely fill the screen
maxDimensionPixels = maxDimensionPixels / 2;
MediaItem.setThumbnailSizes(maxDimensionPixels, 200);
- BitmapScreenNail.setMaxSide(maxDimensionPixels);
+ TiledScreenNail.setMaxSide(maxDimensionPixels);
}
public static boolean isHighResolution(Context context) {