mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Fix issue with grouped task rects being calculated slightly off
- This was causing bleed through between split tasks and perhaps some rounded corners to be calculated incorrectly - Also reset the translation after it is adjusted for dismissing in case the dismiss gesture is canceled. This doesn't fix the issue with bleed through between the task views (to be fixed separately), but makes sure it isn't permanently set on the task Bug: 206739664 Test: Split tasks, swipe up and check the bounds Change-Id: I34430e958ca7a75f48621bc27a281e93fdf97179
This commit is contained in:
@@ -99,6 +99,8 @@ public final class SplitConfigurationOptions {
|
||||
// This class is orientation-agnostic, so we compute both for later use
|
||||
public final float topTaskPercent;
|
||||
public final float leftTaskPercent;
|
||||
public final float dividerWidthPercent;
|
||||
public final float dividerHeightPercent;
|
||||
/**
|
||||
* If {@code true}, that means at the time of creation of this object, the
|
||||
* split-screened apps were vertically stacked. This is useful in scenarios like
|
||||
@@ -130,6 +132,8 @@ public final class SplitConfigurationOptions {
|
||||
|
||||
leftTaskPercent = this.leftTopBounds.width() / (float) rightBottomBounds.right;
|
||||
topTaskPercent = this.leftTopBounds.height() / (float) rightBottomBounds.bottom;
|
||||
dividerWidthPercent = visualDividerBounds.width() / (float) rightBottomBounds.right;
|
||||
dividerHeightPercent = visualDividerBounds.height() / (float) rightBottomBounds.bottom;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user