diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-03-23 02:03:39 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-03-23 02:03:39 -0700 |
commit | 35db5a396ebb907028c518b1df81ddee99109b11 (patch) | |
tree | 1fa4807d6fdc67597433b4192fac5824bc3ee5bf /src/com/android/gallery3d/ui | |
parent | 3d53b5ff000fa99c557f5f15d6a1a985616ffed5 (diff) | |
parent | 4653ca910ecdc4a2b65a05debad13ff49f248d0d (diff) | |
download | android_packages_apps_Gallery2-35db5a396ebb907028c518b1df81ddee99109b11.tar.gz android_packages_apps_Gallery2-35db5a396ebb907028c518b1df81ddee99109b11.tar.bz2 android_packages_apps_Gallery2-35db5a396ebb907028c518b1df81ddee99109b11.zip |
Merge "Gallery2: fix panorama picture display abnormal in list view mode." into android_ui.lnx.1.2-dev
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r-- | src/com/android/gallery3d/ui/AlbumSlotRenderer.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/AlbumSlotRenderer.java b/src/com/android/gallery3d/ui/AlbumSlotRenderer.java index 5d4898f10..a4096dc95 100644 --- a/src/com/android/gallery3d/ui/AlbumSlotRenderer.java +++ b/src/com/android/gallery3d/ui/AlbumSlotRenderer.java @@ -148,7 +148,14 @@ public class AlbumSlotRenderer extends AbstractSlotRenderer { content = new FadeInTexture(mPlaceholderColor, entry.bitmapTexture); entry.content = content; } - drawContent(canvas, content, width, height, entry.rotation); + if (mIsGridViewShown) { + drawContent(canvas, content, width, height, entry.rotation); + } else { + // In List View, the content is always rendered in to the largest square that fits + // inside the slot, aligned to the top of the slot. + int minSize = Math.min(width, height); + drawContent(canvas, content, minSize, minSize, entry.rotation); + } if ((content instanceof FadeInTexture) && ((FadeInTexture) content).isAnimating()) { renderRequestFlags |= SlotView.RENDER_MORE_FRAME; |