Fixing a monkey crash

Bug #4483794
This commit is contained in:
Michael Jurka committed 2011-05-26 14:48:19 -07:00
1 parent dde427869b
commit 4d2e54c517
1 file changed
+1 -1
@@ -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();