diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-06-25 18:06:23 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-06-25 18:15:29 -0700 |
commit | 72b5fd186e7c9399b9c7853d1fc1f3d678ce5f30 (patch) | |
tree | aa77491d9c2fc7b626021de4ef12a9fcf2ce20ea /src/com/android/launcher3/DeviceProfile.java | |
parent | 374d170f965f796b826acfa7f7c277bf19953f61 (diff) | |
download | android_packages_apps_Trebuchet-72b5fd186e7c9399b9c7853d1fc1f3d678ce5f30.tar.gz android_packages_apps_Trebuchet-72b5fd186e7c9399b9c7853d1fc1f3d678ce5f30.tar.bz2 android_packages_apps_Trebuchet-72b5fd186e7c9399b9c7853d1fc1f3d678ce5f30.zip |
Grid change polish bugs.
- Folder icons were too small in landscape.
- Folders can now be 16dp away from the edge
(used to be 64dp which resulted in super small folders)
- Decrease page spacing back to 8dp
- Decrease PreviewBackground accept scale factor since
hotseat is now generally smaller.
Bug: 37014334
Bug: 37015359
Change-Id: Icbb53d34136bfdb93796d48f7379da6b9e214345
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index dcfb268d1..eef651044 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -344,7 +344,7 @@ public class DeviceProfile { updateFolderCellSize(1f, dm, res); // Don't let the folder get too close to the edges of the screen. - int folderMargin = 4 * edgeMarginPx; + int folderMargin = edgeMarginPx; // Check if the icons fit within the available height. float usedHeight = folderCellHeightPx * inv.numFolderRows + folderBottomPanelSize; @@ -497,7 +497,7 @@ public class DeviceProfile { // In portrait, we want the pages spaced such that there is no // overhang of the previous / next page into the current page viewport. // We assume symmetrical padding in portrait mode. - return Math.max(defaultPageSpacingPx, getWorkspacePadding(null).left + 1); + return Math.max(defaultPageSpacingPx, getWorkspacePadding(null).left / 2 + 1); } } |