summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewRootImpl.java
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-04-12 15:13:12 -0700
committerMathias Agopian <mathias@google.com>2013-04-12 17:01:44 -0700
commit54e3d38490b60cd776ad3b988d923241498816e2 (patch)
tree489d06dff32097804e1b37289cf0d601a5cb0c0b /core/java/android/view/ViewRootImpl.java
parent5adae45addad702de4393a68b6236b1d528c58d6 (diff)
always trigger a re-draw when updating the transparent region hint
since SF now relies on receiving a frame for latching the transparent region hint, we make sure we will indeed redraw something. Bug: 8581533 Change-Id: Ia12ddf5654a7deeac7628b799bfde4b8c16c992b
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
-rw-r--r--core/java/android/view/ViewRootImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java
index c1db4c60647e..975570bc06b0 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();
}
}