Merge "Increases the minimized width in landscape by statusbar height" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-21 20:30:46 +00:00
committed by Android (Google) Code Review

View File

@@ -332,8 +332,12 @@ public class DividerSnapAlgorithm {
}
private void addMinimizedTarget(boolean isHorizontalDivision) {
int position = mTaskHeightInMinimizedMode;
position += isHorizontalDivision ? mInsets.top : mInsets.left;
// In portrait offset the position by the statusbar height, in landscape add the statusbar
// height as well to match portrait offset
int position = mTaskHeightInMinimizedMode + mInsets.top;
if (!isHorizontalDivision) {
position += mInsets.left;
}
mTargets.add(new SnapTarget(position, position, SnapTarget.FLAG_NONE));
}