OSDN Git Service

Fixes for setClipBounds()
authorChet Haase <chet@google.com>
Wed, 17 Apr 2013 00:21:41 +0000 (17:21 -0700)
committerChet Haase <chet@google.com>
Wed, 17 Apr 2013 00:57:11 +0000 (17:57 -0700)
commit21f9a3608d618e3dcd30bc73dc60ebfb18690041
tree104804268babd5304b7af5a6abbcc0808a538a4a
parent5584737fff6350ab09fb53e6a73bbff770930727
Fixes for setClipBounds()

The invalidate region when the clip bounds are set needs to encompass both
the old clip bounds and the new bounds, to make sure that the right area
of the view gets erased as well as drawn.

Also, we need to keep our own internal copy of the bounds, not just use the
instance passed into the setter.

Issue #8634060 setClipBounds() problems

Change-Id: I123c49cff16e3debe8866974a5612a4efd010de4
core/java/android/view/View.java