diff options
| author | 2011-10-18 22:33:40 -0700 | |
|---|---|---|
| committer | 2011-10-18 22:33:40 -0700 | |
| commit | d7035c58b006b62084232c8db6c4f7c4002170cc (patch) | |
| tree | ab6011cd7d51c995bf36948ba669aa391f9b007b | |
| parent | 5264f6003bbcb8ca70df034379154914260cc322 (diff) | |
| parent | 526f0a0e158cf46c244edc57624c15ebce26c71f (diff) | |
Merge "Fix a hang in SF caused by invalid transform matrix from the WM" into ics-mr0
| -rw-r--r-- | services/java/com/android/server/wm/WindowState.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/java/com/android/server/wm/WindowState.java b/services/java/com/android/server/wm/WindowState.java index e9218181ab87..eeffb028c0cd 100644 --- a/services/java/com/android/server/wm/WindowState.java +++ b/services/java/com/android/server/wm/WindowState.java @@ -1120,7 +1120,11 @@ final class WindowState implements WindowManagerPolicy.WindowState { // window's center). final float w = frame.width(); final float h = frame.height(); - tmpMatrix.setScale(1 + 2/w, 1 + 2/h, w/2, h/2); + if (w>=1 && h>=1) { + tmpMatrix.setScale(1 + 2/w, 1 + 2/h, w/2, h/2); + } else { + tmpMatrix.reset(); + } } else { tmpMatrix.reset(); } |