summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewCellLayout.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-05-12 14:57:05 -0700
committerMichael Jurka <mikejurka@google.com>2011-05-12 15:07:49 -0700
commita2eb17095dcffa75c1e9681fdc318fe6e0564321 (patch)
tree537fb76a51d7be08e730837ea581d9db40ac5ee9 /src/com/android/launcher2/PagedViewCellLayout.java
parent70a10240a9136146f60f07ebfbda9ffd7c955ab3 (diff)
downloadandroid_packages_apps_Trebuchet-a2eb17095dcffa75c1e9681fdc318fe6e0564321.tar.gz
android_packages_apps_Trebuchet-a2eb17095dcffa75c1e9681fdc318fe6e0564321.tar.bz2
android_packages_apps_Trebuchet-a2eb17095dcffa75c1e9681fdc318fe6e0564321.zip
Moving tablet interface to 'large' devices
(later, we will decide this more accurately based on the width of the screen in dips, but for now keeping changes so that they can easily be backported to earlier versions of Android) Change-Id: I203addcbf19e8e3813c488af47e4fdf90dcd3115
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayout.java')
-rw-r--r--src/com/android/launcher2/PagedViewCellLayout.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher2/PagedViewCellLayout.java
index 92459d8eb..54bdec40c 100644
--- a/src/com/android/launcher2/PagedViewCellLayout.java
+++ b/src/com/android/launcher2/PagedViewCellLayout.java
@@ -259,7 +259,7 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
}
int getContentWidth() {
- if (LauncherApplication.isScreenXLarge()) {
+ if (LauncherApplication.isScreenLarge()) {
// Return the distance from the left edge of the content of the leftmost icon to
// the right edge of the content of the rightmost icon
@@ -283,7 +283,7 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
int count = getChildCount();
for (int i = 0; i < count; i++) {
View child = getChildAt(i);
- if (LauncherApplication.isScreenXLarge()) {
+ if (LauncherApplication.isScreenLarge()) {
child.layout(0, 0, r - l, b - t);
} else {
child.layout(mPaddingLeft, mPaddingTop, getMeasuredWidth() - mPaddingRight,
@@ -477,7 +477,7 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
height = myCellVSpan * cellHeight + ((myCellVSpan - 1) * heightGap) -
topMargin - bottomMargin;
- if (LauncherApplication.isScreenXLarge()) {
+ if (LauncherApplication.isScreenLarge()) {
x = hStartPadding + myCellX * (cellWidth + widthGap) + leftMargin;
y = vStartPadding + myCellY * (cellHeight + heightGap) + topMargin;
} else {