diff options
| author | 2016-05-31 20:08:49 +0000 | |
|---|---|---|
| committer | 2016-05-31 20:08:50 +0000 | |
| commit | 0c54d2c391b6d781fc660646e731f562bcd7037f (patch) | |
| tree | 54f705ca65fa9ee19672fc135d83fef3cdfb777a | |
| parent | ddc6de1eda495790e6564438994df5d49ddf248f (diff) | |
| parent | e525a35704043205ac5131898cc3291407864c32 (diff) | |
Merge "Fix multi-window enter animation" into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java index d09587bbd3e4..998f50f205d7 100644 --- a/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java +++ b/packages/SystemUI/src/com/android/systemui/stackdivider/DividerView.java @@ -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()); } |