From 9392a75d0493fc9aacbb1e6e63518b0fa66cc3b9 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 15 Sep 2009 17:13:09 -0400 Subject: [PATCH] Add support for the text burn in all apps, but leave it turned off. It doesn't look good right now, without the proper blending. --- src/com/android/launcher2/Utilities.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index 50757ca59b..ec9fb79f46 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher2/Utilities.java @@ -43,6 +43,8 @@ import android.content.Context; final class Utilities { private static final String TAG = "Launcher.Utilities"; + private static final boolean TEXT_BURN = false; + private static int sIconWidth = -1; private static int sIconHeight = -1; private static int sIconTextureWidth = -1; @@ -379,7 +381,9 @@ final class Utilities { textPaint.setTextSize(13*scale); textPaint.setColor(0xffffffff); textPaint.setAntiAlias(true); - //textPaint.setShadowLayer(8, 0, 0, 0xff000000); + if (TEXT_BURN) { + textPaint.setShadowLayer(8, 0, 0, 0xff000000); + } float ascent = -textPaint.ascent(); float descent = textPaint.descent(); @@ -407,7 +411,7 @@ final class Utilities { if (lineCount > MAX_LINES) { lineCount = MAX_LINES; } - if (lineCount > 0) { + if (!TEXT_BURN && lineCount > 0) { RectF bubbleRect = mBubbleRect; bubbleRect.bottom = height(lineCount); c.drawRoundRect(bubbleRect, mCornerRadius, mCornerRadius, mRectPaint);