diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-24 13:46:02 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-24 13:46:02 +0000 |
commit | 53b9dc7f0ff23e926ab9a2ff2f79d9291d36a53e (patch) | |
tree | 0ea463d20d5bff85417978d6f21e00cec6e4c52e /src/com/cyanogenmod/trebuchet/Workspace.java | |
parent | fb97fd60f68813553c68e7316a01c7c56726d12a (diff) | |
download | android_packages_apps_Trebuchet-53b9dc7f0ff23e926ab9a2ff2f79d9291d36a53e.tar.gz android_packages_apps_Trebuchet-53b9dc7f0ff23e926ab9a2ff2f79d9291d36a53e.tar.bz2 android_packages_apps_Trebuchet-53b9dc7f0ff23e926ab9a2ff2f79d9291d36a53e.zip |
Hotseat: Lanscape layout fixes
Change-Id: I160e16e5d56e9722e210f3f3e9cf4413493c78a8
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/Workspace.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Workspace.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index 7c30386d9..fa0c9ecce 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -663,6 +663,11 @@ public class Workspace extends SmoothPagedView final CellLayout layout; if (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { + // Note: We do this to ensure that the hotseat is always laid out in the orientation + // of the hotseat in order regardless of which orientation they were added + y = mLauncher.getHotseat().getCellYFromOrder(x); + x = mLauncher.getHotseat().getCellXFromOrder(x); + screen = mLauncher.getHotseat().getScreenFromOrder(screen); if (screen < 0 || screen >= mLauncher.getHotseat().getChildCount()) { layout = (CellLayout) mLauncher.getHotseat().getLayout(); } else { @@ -676,11 +681,6 @@ public class Workspace extends SmoothPagedView } else if (child instanceof BubbleTextView) { ((BubbleTextView) child).setTextVisible(false); } - - // Note: We do this to ensure that the hotseat is always laid out in the orientation - // of the hotseat in order regardless of which orientation they were added - y = mLauncher.getHotseat().getCellYFromOrder(x); - x = mLauncher.getHotseat().getCellXFromOrder(x); } else { if (!mHideIconLabels) { // Show titles if not in the hotseat |