diff options
author | Joe Onorato <joeo@android.com> | 2009-09-15 17:13:09 -0400 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-09-16 11:43:01 -0400 |
commit | 9392a75d0493fc9aacbb1e6e63518b0fa66cc3b9 (patch) | |
tree | 9153586f40d0144c3a2c89abf393e7a4eba0ab22 /src/com/android/launcher2/Utilities.java | |
parent | 83a5d38cb6fd7f9f890afb5281937991c71ebd1c (diff) | |
download | android_packages_apps_Trebuchet-9392a75d0493fc9aacbb1e6e63518b0fa66cc3b9.tar.gz android_packages_apps_Trebuchet-9392a75d0493fc9aacbb1e6e63518b0fa66cc3b9.tar.bz2 android_packages_apps_Trebuchet-9392a75d0493fc9aacbb1e6e63518b0fa66cc3b9.zip |
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.
Diffstat (limited to 'src/com/android/launcher2/Utilities.java')
-rw-r--r-- | src/com/android/launcher2/Utilities.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index 50757ca59..ec9fb79f4 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); |