diff options
author | Jim Miller <jaggies@google.com> | 2011-03-08 21:38:39 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-03-08 21:47:13 -0800 |
commit | e70d506ab329f1f96b0ee132317aa36edea1b94e (patch) | |
tree | 4fe69054ee991723dcd309d906614e77d7cbb690 /packages | |
parent | 8496ddc536eb917c813b7928f174c828d2275ada (diff) | |
download | frameworks_base-e70d506ab329f1f96b0ee132317aa36edea1b94e.zip frameworks_base-e70d506ab329f1f96b0ee132317aa36edea1b94e.tar.gz frameworks_base-e70d506ab329f1f96b0ee132317aa36edea1b94e.tar.bz2 |
Fix 4027057: Improve resolution of RecentApps thumbnail images.
This fix ensures captured thumbnails in portrait mode have the
same resolution as those in landscape by fixing the horizontal
resolution and vertical resolution of the target image.
The returned image is now always the same size and matches
the landscape screen exactly. In portrait mode, it grabs
the upper portion of the screen based on the vertical dimension
of the target image.
Change-Id: I203c39843f2f21ca28f6ef0dffec308ce5cb39fb
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java index 737a52b..c5a7df2 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java @@ -513,9 +513,7 @@ public class RecentAppsPanel extends RelativeLayout implements StatusBarPanel, O paint.setFilterBitmap(true); paint.setAlpha(255); final int srcWidth = thumbnail.getWidth(); - final int height = thumbnail.getHeight(); - final int srcHeight = srcWidth > height ? height - : (height - height * srcWidth / height); + final int srcHeight = thumbnail.getHeight(); canvas.drawBitmap(thumbnail, new Rect(0, 0, srcWidth-1, srcHeight-1), new RectF(GLOW_PADDING, |