Merge "Make sure background drawable callback is cleared during resizing" into nyc-dev

am: f8fb6d1261

* commit 'f8fb6d1261dd7ee4ee5342766f0f12e1b31080b2':
  Make sure background drawable callback is cleared during resizing
This commit is contained in:
Chong Zhang
2016-02-25 02:12:22 +00:00
committed by android-build-merger

View File

@@ -1745,6 +1745,10 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
mCaptionBackgroundDrawable = getContext().getDrawable(
R.drawable.decor_caption_title_focused);
}
if (mResizingBackgroundDrawable != null) {
mLastBackgroundDrawableCb = mResizingBackgroundDrawable.getCallback();
mResizingBackgroundDrawable.setCallback(null);
}
}
// Free floating overlapping windows require a caption.
@@ -1915,11 +1919,6 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
final ThreadedRenderer renderer = getHardwareRenderer();
if (renderer != null) {
loadBackgroundDrawablesIfNeeded();
if (mResizingBackgroundDrawable != null) {
mLastBackgroundDrawableCb = mResizingBackgroundDrawable.getCallback();
mResizingBackgroundDrawable.setCallback(null);
}
mBackdropFrameRenderer = new BackdropFrameRenderer(this, renderer,
initialBounds, mResizingBackgroundDrawable, mCaptionBackgroundDrawable,
mUserCaptionBackgroundDrawable, getCurrentColor(mStatusColorViewState),