diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-26 23:22:05 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-26 23:22:05 +0000 |
commit | 8901992c72caa891a396f557ee76f42f1d7fbe15 (patch) | |
tree | cf835060f0d3c1a6721a13076c55f46814bda348 /src/com/cyanogenmod | |
parent | fc8ea2ddf7badf18f1415865927c62a8e5be37e5 (diff) | |
download | packages_apps_trebuchet-8901992c72caa891a396f557ee76f42f1d7fbe15.zip packages_apps_trebuchet-8901992c72caa891a396f557ee76f42f1d7fbe15.tar.gz packages_apps_trebuchet-8901992c72caa891a396f557ee76f42f1d7fbe15.tar.bz2 |
Fixes
Change-Id: I0778017cc8a7afc169fa72ebbee25ba2bdeefc60
Diffstat (limited to 'src/com/cyanogenmod')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Hotseat.java | 2 | ||||
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Launcher.java | 8 | ||||
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Workspace.java | 9 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Hotseat.java b/src/com/cyanogenmod/trebuchet/Hotseat.java index 80656b6..38a826e 100644 --- a/src/com/cyanogenmod/trebuchet/Hotseat.java +++ b/src/com/cyanogenmod/trebuchet/Hotseat.java @@ -79,7 +79,7 @@ public class Hotseat extends PagedView { for (int i = 0; i < hotseatPages; i++) { CellLayout cl = (CellLayout) inflater.inflate(R.layout.hotseat_page, null); cl.setIsHotseat(true); - cl.setGridSize((!mIsLandscape ? mCellCount : 1), (mIsLandscape ? mCellCount : 1)); + cl.setGridSize((!hasVerticalHotseat() ? mCellCount : 1), (hasVerticalHotseat() ? mCellCount : 1)); addView(cl); } diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java index fd634f3..f5951ea 100644 --- a/src/com/cyanogenmod/trebuchet/Launcher.java +++ b/src/com/cyanogenmod/trebuchet/Launcher.java @@ -931,12 +931,12 @@ public final class Launcher extends Activity mSearchDropTargetBar = (SearchDropTargetBar) mDragLayer.findViewById(R.id.qsb_bar); // Hide the search divider if we are hiding search bar - if (!mShowSearchBar && getCurrentOrientation() == Configuration.ORIENTATION_LANDSCAPE) { - findViewById(R.id.qsb_divider).setVisibility(View.GONE); + if (!mShowSearchBar && mQsbDivider != null && getCurrentOrientation() == Configuration.ORIENTATION_LANDSCAPE) { + mQsbDivider.setVisibility(View.GONE); } - if (!mShowDockDivider) { - findViewById(R.id.dock_divider).setVisibility(View.GONE); + if (!mShowDockDivider && mDockDivider != null) { + mDockDivider.setVisibility(View.GONE); } // Setup AppsCustomize diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index 32062e6..c7d6e75 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -4349,9 +4349,12 @@ public class Workspace extends PagedView // return null for some shortcuts (for instance, for shortcuts to // web pages.) final Intent intent = info.intent; - final ComponentName name = intent.getComponent(); - if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION && - Intent.ACTION_MAIN.equals(intent.getAction()) && name != null) { + if (intent != null && info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION && + Intent.ACTION_MAIN.equals(intent.getAction())) { + final ComponentName name = intent.getComponent(); + if (name == null) { + continue; + } for (ApplicationInfo app : apps) { if (app.componentName.equals(name)) { BubbleTextView shortcut = (BubbleTextView) view; |