Merge changes Ie59ed72c,Ie763a2a6,I7f830e5c,Ife637438 into nyc-dev am: fe1886f
am: 843fcb0
* commit '843fcb079ec1d3aae6a431af57530dfa2d385552':
Should not update initial state at all on resize.
Adding logging to track down bitmap issues.
Moving the background to the window.
Adding clear-all button.
Change-Id: I27ed2e95a43b77e45aa15a7ae1de9c54c4a0d78e
This commit is contained in:
@@ -209,6 +209,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
||||
private Drawable mResizingBackgroundDrawable;
|
||||
private Drawable mCaptionBackgroundDrawable;
|
||||
private Drawable mUserCaptionBackgroundDrawable;
|
||||
private Drawable mOriginalBackgroundDrawable;
|
||||
|
||||
private float mAvailableWidth;
|
||||
|
||||
@@ -888,6 +889,11 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
||||
mBackgroundPadding.setEmpty();
|
||||
}
|
||||
drawableChanged();
|
||||
|
||||
// Make sure we don't reset to the old drawable when finishing resizing.
|
||||
if (mResizeMode != RESIZE_MODE_INVALID) {
|
||||
mOriginalBackgroundDrawable = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1950,6 +1956,9 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
||||
updateElevation();
|
||||
|
||||
updateColorViews(null /* insets */, false);
|
||||
|
||||
mOriginalBackgroundDrawable = getBackground();
|
||||
setBackgroundDrawable(null);
|
||||
}
|
||||
mResizeMode = resizeMode;
|
||||
getViewRootImpl().requestInvalidateRootRenderNode();
|
||||
@@ -1961,6 +1970,10 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
|
||||
updateColorViews(null /* insets */, false);
|
||||
mResizeMode = RESIZE_MODE_INVALID;
|
||||
getViewRootImpl().requestInvalidateRootRenderNode();
|
||||
if (mOriginalBackgroundDrawable != null) {
|
||||
setBackgroundDrawable(mOriginalBackgroundDrawable);
|
||||
mOriginalBackgroundDrawable = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user