diff options
author | Michael Jurka <mikejurka@google.com> | 2011-05-26 14:47:49 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-05-26 14:48:19 -0700 |
commit | 4d2e54c517f2e9cf451536cf9c126cf9839d49bb (patch) | |
tree | 62a6c65ba6595b8e52d06c40330f11efd701c214 | |
parent | dde427869bd06bd45b3ff2fab15604fb438e98c5 (diff) | |
download | android_packages_apps_Trebuchet-4d2e54c517f2e9cf451536cf9c126cf9839d49bb.tar.gz android_packages_apps_Trebuchet-4d2e54c517f2e9cf451536cf9c126cf9839d49bb.tar.bz2 android_packages_apps_Trebuchet-4d2e54c517f2e9cf451536cf9c126cf9839d49bb.zip |
Fixing a monkey crash
Bug #4483794
-rw-r--r-- | src/com/android/launcher2/CachedTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/CachedTextView.java b/src/com/android/launcher2/CachedTextView.java index d0f6dd804..ac2cc3b5c 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(); |