diff options
author | Joe Onorato <joeo@android.com> | 2009-11-08 13:20:30 -0500 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-11-08 13:20:30 -0500 |
commit | eb8325a9e24cda47720152e1e95f5d86ab11f200 (patch) | |
tree | 137729ae5369baa574c5ce1ba60088ad16a2b2c9 /src/com/android/launcher2/Utilities.java | |
parent | c61cff9299a54599c2b214de7c819b6be0412f4e (diff) | |
download | android_packages_apps_Trebuchet-eb8325a9e24cda47720152e1e95f5d86ab11f200.tar.gz android_packages_apps_Trebuchet-eb8325a9e24cda47720152e1e95f5d86ab11f200.tar.bz2 android_packages_apps_Trebuchet-eb8325a9e24cda47720152e1e95f5d86ab11f200.zip |
Bug 2239823 - Can't focus "home" icon in 3d all apps
Diffstat (limited to 'src/com/android/launcher2/Utilities.java')
-rw-r--r-- | src/com/android/launcher2/Utilities.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index b77e00a59..55cb509bc 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher2/Utilities.java @@ -54,7 +54,7 @@ final class Utilities { private static final Paint sPaint = new Paint(); private static final Paint sBlurPaint = new Paint(); - private static final Paint sGlowColorSelectedPaint = new Paint(); + private static final Paint sGlowColorPressedPaint = new Paint(); private static final Paint sGlowColorFocusedPaint = new Paint(); private static final Paint sEmptyPaint = new Paint(); private static final Rect sBounds = new Rect(); @@ -247,7 +247,7 @@ final class Utilities { } static void drawSelectedAllAppsBitmap(Canvas dest, int destWidth, int destHeight, - boolean selected, Bitmap src) { + boolean pressed, Bitmap src) { synchronized (sCanvas) { // we share the statics :-( if (sIconWidth == -1) { // We can't have gotten to here without src being initialized, which @@ -264,7 +264,7 @@ final class Utilities { float px = (destWidth - src.getWidth()) / 2; float py = (destHeight - src.getHeight()) / 2; dest.drawBitmap(mask, px + xy[0], py + xy[1], - selected ? sGlowColorSelectedPaint : sGlowColorFocusedPaint); + pressed ? sGlowColorPressedPaint : sGlowColorFocusedPaint); mask.recycle(); } @@ -342,8 +342,8 @@ final class Utilities { sIconTextureWidth = sIconTextureHeight = roundToPow2(sIconWidth); sBlurPaint.setMaskFilter(new BlurMaskFilter(5 * density, BlurMaskFilter.Blur.NORMAL)); - sGlowColorSelectedPaint.setColor(0xffffc300); - sGlowColorSelectedPaint.setMaskFilter(TableMaskFilter.CreateClipTable(0, 30)); + sGlowColorPressedPaint.setColor(0xffffc300); + sGlowColorPressedPaint.setMaskFilter(TableMaskFilter.CreateClipTable(0, 30)); sGlowColorFocusedPaint.setColor(0xffff8e00); sGlowColorFocusedPaint.setMaskFilter(TableMaskFilter.CreateClipTable(0, 30)); } |