commit | fea12b87f2988f20ea87314c4a1b47e1a0f4d95e | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Thu Jan 27 15:36:40 2011 -0800 |
committer | Romain Guy <romainguy@google.com> | Thu Jan 27 15:36:40 2011 -0800 |
tree | 13847a9d2a0b819b1e926cd3a5279718a0cc06a7 | |
parent | 64a2c359aeda59e4bc43d48f31ade919e918ea26 [diff] [blame] |
Catch exception when ViewRoot's surface is not valid. Bug #3399426 Change-Id: Id4e0b8714c9520c4e84e81c2978752d46c912b6b
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java index 41fc6c6..b21af41 100644 --- a/core/java/android/view/ViewRoot.java +++ b/core/java/android/view/ViewRoot.java
@@ -1537,6 +1537,7 @@ int top = dirty.top; int right = dirty.right; int bottom = dirty.bottom; + canvas = surface.lockCanvas(dirty); if (left != dirty.left || top != dirty.top || right != dirty.right ||