diff options
Diffstat (limited to 'core/java/android/view/ViewRoot.java')
-rw-r--r-- | core/java/android/view/ViewRoot.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java index 761c5d9..cb7d0e2 100644 --- a/core/java/android/view/ViewRoot.java +++ b/core/java/android/view/ViewRoot.java @@ -54,7 +54,6 @@ import android.util.Log; import android.util.Slog; import android.util.SparseArray; import android.util.TypedValue; -import android.view.InputQueue.FinishedCallback; import android.view.View.MeasureSpec; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityManager; @@ -775,7 +774,7 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn baseSize = (int)mTmpValue.getDimension(packageMetrics); } if (DEBUG_DIALOG) Log.v(TAG, "Window " + mView + ": baseSize=" + baseSize); - if (desiredWindowWidth > baseSize) { + if (baseSize != 0 && desiredWindowWidth > baseSize) { int maxHeight = (desiredWindowHeight*2)/3; childWidthMeasureSpec = getRootMeasureSpec(baseSize, lp.width); childHeightMeasureSpec = getRootMeasureSpec(desiredWindowHeight, lp.height); |