summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
diff options
context:
space:
mode:
authorWinson <winsonc@google.com>2016-07-20 14:25:07 -0700
committerWinson Chung <winsonc@google.com>2016-07-20 22:09:57 +0000
commit11439c58546be37a309e99983ed40917408a2de2 (patch)
tree18255149f6baff87a142507ff3af01aba7066bcb /src/com/android/launcher3/DeviceProfile.java
parent03340309e23a5de5b97cfb097697e0e9e0392205 (diff)
downloadandroid_packages_apps_Trebuchet-11439c58546be37a309e99983ed40917408a2de2.tar.gz
android_packages_apps_Trebuchet-11439c58546be37a309e99983ed40917408a2de2.tar.bz2
android_packages_apps_Trebuchet-11439c58546be37a309e99983ed40917408a2de2.zip
Fixing small regressions from layout tweaks
- Ensure that the caret is the right height - Ensure that the workspace page spacing matches the workspace padding, but just offscreen Bug: 30021487 Change-Id: Iaf4b33db0f6456b74986638fb6b6af78fc6e1859
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-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 ac86f0b74..5828dfc57 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -392,7 +392,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, 2 * getWorkspacePadding(null).left);
+ return Math.max(defaultPageSpacingPx, getWorkspacePadding(null).left + 1);
}
}