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 committed 2018-02-07 14:56:24 -08:00
1 parent 03c8e3ffad
commit 2fda6ced2a
5 files changed
+92 -43

No files matched your search

+1 -1
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));