mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Round split layout values instead of using int cast
* Silly us, we forgot that int casting always floors. Math.round() does a mathematical round. Fixes: 248575056 Test: Wallpaper no longer bleeds through on split animation. Change-Id: I068c030ce6b86fc12faee7778c0d87a0d5aea487
This commit is contained in:
@@ -283,9 +283,9 @@ public class SeascapePagedViewHandler extends LandscapePagedViewHandler {
|
||||
// (portrait bottom) and secondary is on the right (portrait top)
|
||||
int spaceAboveSnapshot = dp.overviewTaskThumbnailTopMarginPx;
|
||||
int totalThumbnailHeight = parentHeight - spaceAboveSnapshot;
|
||||
int dividerBar = splitBoundsConfig.appsStackedVertically
|
||||
? (int) (splitBoundsConfig.dividerHeightPercent * parentHeight)
|
||||
: (int) (splitBoundsConfig.dividerWidthPercent * parentWidth);
|
||||
int dividerBar = Math.round(totalThumbnailHeight * (splitBoundsConfig.appsStackedVertically
|
||||
? splitBoundsConfig.dividerHeightPercent
|
||||
: splitBoundsConfig.dividerWidthPercent));
|
||||
int primarySnapshotHeight;
|
||||
int primarySnapshotWidth;
|
||||
int secondarySnapshotHeight;
|
||||
|
||||
Reference in New Issue
Block a user