Merge "Fix crash when docking." into nyc-dev

This commit is contained in:
Rob Carr
2016-04-27 21:36:50 +00:00
committed by Android (Google) Code Review

View File

@@ -3479,8 +3479,10 @@ public final class ActivityThread {
// the decor view we have to notify the view root that the // the decor view we have to notify the view root that the
// callbacks may have changed. // callbacks may have changed.
ViewRootImpl impl = decor.getViewRootImpl(); ViewRootImpl impl = decor.getViewRootImpl();
if (impl != null) {
impl.notifyChildRebuilt(); impl.notifyChildRebuilt();
} }
}
if (a.mVisibleFromClient && !a.mWindowAdded) { if (a.mVisibleFromClient && !a.mWindowAdded) {
a.mWindowAdded = true; a.mWindowAdded = true;
wm.addView(decor, l); wm.addView(decor, l);