From f64bb8f6838663783d55d07cee20f96b93aa5b42 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 16 Oct 2012 18:51:19 -0700 Subject: Make my dreams pretty Bug #7353771 This change enables mipmapping on large photos to make them look nicer when scaled down. Change-Id: I90f398a361f78b098884543a686e20a266e6af44 --- src/com/android/dreams/phototable/PhotoTable.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/com/android/dreams/phototable') diff --git a/src/com/android/dreams/phototable/PhotoTable.java b/src/com/android/dreams/phototable/PhotoTable.java index 49941cd..ddf2f58 100644 --- a/src/com/android/dreams/phototable/PhotoTable.java +++ b/src/com/android/dreams/phototable/PhotoTable.java @@ -259,6 +259,7 @@ public class PhotoTable extends FrameLayout { if (table.mOptions.outWidth <= 0 || table.mOptions.outHeight <= 0) { photo = null; } else { + decodedPhoto.setHasMipMap(true); layers[0] = new BitmapDrawable(table.mResources, decodedPhoto); layers[1] = table.mResources.getDrawable(R.drawable.frame); LayerDrawable layerList = new LayerDrawable(layers); -- cgit v1.2.3