diff options
| author | Mathias Agopian <mathias@google.com> | 2013-04-12 17:32:32 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-12 17:32:32 -0700 |
| commit | 4c87edfe4d2dce71b7b723f25078cd4bd5d48456 (patch) | |
| tree | c80a237c58df66dddaf1fca9c63c3ab958e36faf /core/java/android/view/ViewRootImpl.java | |
| parent | d347d519766e80b27c4f469f391c388c78f75373 (diff) | |
| parent | 1763d6f957163faf6d3b629c36f4e8e90e0e31bd (diff) | |
am 1763d6f9: Merge "always trigger a re-draw when updating the transparent region hint" into jb-mr2-dev
* commit '1763d6f957163faf6d3b629c36f4e8e90e0e31bd':
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 094c90110a31..f03c07751d19 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -1727,7 +1727,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) { @@ -1745,6 +1745,7 @@ public final class ViewRootImpl implements ViewParent, if (!mTransparentRegion.equals(mPreviousTransparentRegion)) { mPreviousTransparentRegion.set(mTransparentRegion); + mFullRedrawNeeded = true; // reconfigure window manager try { mWindowSession.setTransparentRegion(mWindow, mTransparentRegion); @@ -4922,7 +4923,7 @@ public final class ViewRootImpl implements ViewParent, public void handleDispatchDoneAnimating() { if (mWindowsAnimating) { mWindowsAnimating = false; - if (!mDirty.isEmpty() || mIsAnimating) { + if (!mDirty.isEmpty() || mIsAnimating || mFullRedrawNeeded) { scheduleTraversals(); } } |
