summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2018-09-25 13:05:23 -0700
committerJon Miranda <jonmiranda@google.com>2018-09-25 13:05:23 -0700
commit1786df36c2574be55a05efb21554e0a27db6a9ca (patch)
tree5395ecdb8bdef318e60b08b7ff13147b31b0cb4f /src
parentd65f5f7f1a692b03bee09a15f4e0c865ed97fa61 (diff)
downloadandroid_packages_apps_Trebuchet-1786df36c2574be55a05efb21554e0a27db6a9ca.tar.gz
android_packages_apps_Trebuchet-1786df36c2574be55a05efb21554e0a27db6a9ca.tar.bz2
android_packages_apps_Trebuchet-1786df36c2574be55a05efb21554e0a27db6a9ca.zip
Fix bug where folder items get clipped.
We need to account for both sides in the folder margin calculation. eg. in MW mode with display set to Largest, the folder can reach both edges Bug: 115955939 Change-Id: I145c8c1c2a75891eb3386284f06fc98800fe5ce9
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/DeviceProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java
index 9839c12dc..b429018d7 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -373,7 +373,7 @@ public class DeviceProfile {
updateFolderCellSize(1f, dm, res);
// Don't let the folder get too close to the edges of the screen.
- int folderMargin = edgeMarginPx;
+ int folderMargin = edgeMarginPx * 2;
Point totalWorkspacePadding = getTotalWorkspacePadding();
// Check if the icons fit within the available height.