diff options
| author | Mathias Agopian <mathias@google.com> | 2013-04-12 18:05:43 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-12 18:05:43 -0700 |
| commit | cc6dda77501d0e8dd5ea267f51c02fd120476d28 (patch) | |
| tree | fcbda1c7c367f9f2605089e5a8d7b0b621f95331 /core/java/android/view/ViewRootImpl.java | |
| parent | 7abfc34cd64dc1ab241ae6a63623cda48ade5d03 (diff) | |
| parent | 4c87edfe4d2dce71b7b723f25078cd4bd5d48456 (diff) | |
am 4c87edfe: am 1763d6f9: Merge "always trigger a re-draw when updating the transparent region hint" into jb-mr2-dev
* commit '4c87edfe4d2dce71b7b723f25078cd4bd5d48456':
always trigger a re-draw when updating the transparent region hint
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 55b6d739aeb0..3215e21e1b1f 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -1730,7 +1730,7 @@ public final class ViewRootImpl implements ViewParent, if (didLayout) { performLayout(lp, desiredWindowWidth, desiredWindowHeight); - // By this point all views have been sized and positionned + // By this point all views have been sized and positioned // We can compute the transparent area if ((host.mPrivateFlags & View.PFLAG_REQUEST_TRANSPARENT_REGIONS) != 0) { @@ -1748,6 +1748,7 @@ public final class ViewRootImpl implements ViewParent, if (!mTransparentRegion.equals(mPreviousTransparentRegion)) { mPreviousTransparentRegion.set(mTransparentRegion); + mFullRedrawNeeded = true; // reconfigure window manager try { mWindowSession.setTransparentRegion(mWindow, mTransparentRegion); @@ -4925,7 +4926,7 @@ public final class ViewRootImpl implements ViewParent, public void handleDispatchDoneAnimating() { if (mWindowsAnimating) { mWindowsAnimating = false; - if (!mDirty.isEmpty() || mIsAnimating) { + if (!mDirty.isEmpty() || mIsAnimating || mFullRedrawNeeded) { scheduleTraversals(); } } |
