summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2011-03-09 14:42:56 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-09 14:42:56 -0800
commit5c9248f668201a751500f67cc60bd45ff905751a (patch)
treebd8a8af74cdb2a5d9665afadfe0d429b2010876a /packages/SystemUI/src
parent788dd5e076821d8604be7a8e44a1c5ae5f4e198e (diff)
parente70d506ab329f1f96b0ee132317aa36edea1b94e (diff)
downloadframeworks_base-5c9248f668201a751500f67cc60bd45ff905751a.zip
frameworks_base-5c9248f668201a751500f67cc60bd45ff905751a.tar.gz
frameworks_base-5c9248f668201a751500f67cc60bd45ff905751a.tar.bz2
Merge "Fix 4027057: Improve resolution of RecentApps thumbnail images." into honeycomb-mr1
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java4
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,