summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-01-10 23:40:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-10 23:40:40 +0000
commit234b506f4625b23172d437a2ba0b47d63cc2e3dd (patch)
tree9d521b162214586b1c3ce917ad9f8678fede55b5 /src/com/android/launcher3/DeviceProfile.java
parent8b5b05b7f3c8c5d705116c425bd5dbff2b75d56a (diff)
parenta694524047fda0a51dede4eefb1201a598d2d3a7 (diff)
downloadandroid_packages_apps_Trebuchet-234b506f4625b23172d437a2ba0b47d63cc2e3dd.tar.gz
android_packages_apps_Trebuchet-234b506f4625b23172d437a2ba0b47d63cc2e3dd.tar.bz2
android_packages_apps_Trebuchet-234b506f4625b23172d437a2ba0b47d63cc2e3dd.zip
Merge "Adding migration Clings. (Bug 11973614)" into jb-ub-now-kermit
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r--src/com/android/launcher3/DeviceProfile.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java
index a236b84db..a64d5e403 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -475,6 +475,14 @@ public class DeviceProfile {
return bounds;
}
+ /** Returns the bounds of the workspace page indicators. */
+ Rect getWorkspacePageIndicatorBounds(Rect insets) {
+ Rect workspacePadding = getWorkspacePadding();
+ int pageIndicatorTop = heightPx - insets.bottom - workspacePadding.bottom;
+ return new Rect(workspacePadding.left, pageIndicatorTop,
+ widthPx - workspacePadding.right, pageIndicatorTop + pageIndicatorHeightPx);
+ }
+
/** Returns the workspace padding in the specified orientation */
Rect getWorkspacePadding() {
return getWorkspacePadding(isLandscape ? CellLayout.LANDSCAPE : CellLayout.PORTRAIT);