Handle transition from multi-window

- Make use of app/home insets and minimized home size to calculate the
  proper clipping and target bounds for the task view in home.

Test: Swipe up when in multiwindow

Change-Id: Ibef7a6dc319ded7867ee559dd31c5e87fd76cadb
This commit is contained in:
Winson Chung
2018-01-31 14:09:49 -08:00
parent 03c8e3ffad
commit 2fda6ced2a
5 changed files with 92 additions and 43 deletions

View File

@@ -217,7 +217,7 @@ public class DeviceProfile {
return new DeviceProfile(context, inv, size, size, widthPx, heightPx, isLandscape);
}
DeviceProfile getMultiWindowProfile(Context context, Point mwSize) {
public DeviceProfile getMultiWindowProfile(Context context, Point mwSize) {
// We take the minimum sizes of this profile and it's multi-window variant to ensure that
// the system decor is always excluded.
mwSize.set(Math.min(availableWidthPx, mwSize.x), Math.min(availableHeightPx, mwSize.y));