From 4d2e54c517f2e9cf451536cf9c126cf9839d49bb Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 26 May 2011 14:47:49 -0700 Subject: [PATCH] Fixing a monkey crash Bug #4483794 --- src/com/android/launcher2/CachedTextView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher2/CachedTextView.java b/src/com/android/launcher2/CachedTextView.java index d0f6dd804f..ac2cc3b5c4 100644 --- a/src/com/android/launcher2/CachedTextView.java +++ b/src/com/android/launcher2/CachedTextView.java @@ -107,7 +107,7 @@ public class CachedTextView extends TextView { int width = (int) (textCacheRight - mTextCacheLeft + (2 * xCharWidth)); int height = (int) (textCacheBottom - mTextCacheTop); - if (width != 0 && height != 0) { + if (width > 0 && height > 0) { if (mCache != null) { if (mCache.getWidth() != width || mCache.getHeight() != height) { mCache.recycle();