mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing rounding error when computing bottom clip
- In TaskThumbnailView.updateThumbnailMatrix() we compare the rounded scaled bitmap height with the height of the task/thumbnail view. Since the position is also non-integer, the rounding of the sum is not equivalent to the rounding of the individual components, which causes the check to fail. Bug: 135150767 Test: Quickswitch on sargo Change-Id: I849b4732569e5b8699f00f5ff210f41fb505f1e7
This commit is contained in:
@@ -110,7 +110,7 @@ public class LayoutUtils {
|
||||
float y = insets.top + Math.max(topIconMargin,
|
||||
(launcherVisibleHeight - extraVerticalSpace - outHeight) / 2);
|
||||
outRect.set(Math.round(x), Math.round(y),
|
||||
Math.round(x + outWidth), Math.round(y + outHeight));
|
||||
Math.round(x) + Math.round(outWidth), Math.round(y) + Math.round(outHeight));
|
||||
}
|
||||
|
||||
public static int getShelfTrackingDistance(Context context, DeviceProfile dp) {
|
||||
|
||||
Reference in New Issue
Block a user