Merge "Fix multi-window enter animation" into nyc-dev am: 0c54d2c391
am: 0172bea180
* commit '0172bea180debdbbb319bd811ceee054d1ec17a6':
Fix multi-window enter animation
Change-Id: Id19c16dd9947291c736873e3b81b50b7262b55cb
This commit is contained in:
@@ -1064,6 +1064,14 @@ public class DividerView extends FrameLayout implements OnTouchListener,
|
||||
int position = DockedDividerUtils.calculatePositionForBounds(event.initialRect,
|
||||
mDockSide, mDividerSize);
|
||||
mEntranceAnimationRunning = true;
|
||||
|
||||
// Insets might not have been fetched yet, so fetch manually if needed.
|
||||
if (mStableInsets.isEmpty()) {
|
||||
SystemServicesProxy.getInstance(mContext).getStableInsets(mStableInsets);
|
||||
mSnapAlgorithm = null;
|
||||
initializeSnapAlgorithm();
|
||||
}
|
||||
|
||||
resizeStack(position, mSnapAlgorithm.getMiddleTarget().position,
|
||||
mSnapAlgorithm.getMiddleTarget());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user