summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-05-26 14:47:49 -0700
committerMichael Jurka <mikejurka@google.com>2011-05-26 14:48:19 -0700
commit4d2e54c517f2e9cf451536cf9c126cf9839d49bb (patch)
tree62a6c65ba6595b8e52d06c40330f11efd701c214 /src
parentdde427869bd06bd45b3ff2fab15604fb438e98c5 (diff)
downloadandroid_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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/CachedTextView.java2
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();