Make my dreams pretty
Bug #7353771
This change enables mipmapping on large photos to make them look
nicer when scaled down.
Change-Id: I90f398a361f78b098884543a686e20a266e6af44
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 @@
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);