mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user