summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Hotseat.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2013-07-12 14:14:16 -0700
committerWinson Chung <winsonc@google.com>2013-07-12 15:12:32 -0700
commit156ab5b22e45b36a1c5edbe5accccf6aefcb4907 (patch)
tree258f3800bb14e891c9852e172a4ad011d15e9d68 /src/com/android/launcher3/Hotseat.java
parent7bac576622fc56c86c8937fd425e3a510c69f375 (diff)
downloadandroid_packages_apps_Trebuchet-156ab5b22e45b36a1c5edbe5accccf6aefcb4907.tar.gz
android_packages_apps_Trebuchet-156ab5b22e45b36a1c5edbe5accccf6aefcb4907.tar.bz2
android_packages_apps_Trebuchet-156ab5b22e45b36a1c5edbe5accccf6aefcb4907.zip
Fixing issue where migration all apps folder couldn't be picked up.
- Ensuring that we add items to the non-primary home page - Fixing issue with drop-target touch handling on tablets Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
Diffstat (limited to 'src/com/android/launcher3/Hotseat.java')
-rw-r--r--src/com/android/launcher3/Hotseat.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java
index 054ef2fc1..7b96d6514 100644
--- a/src/com/android/launcher3/Hotseat.java
+++ b/src/com/android/launcher3/Hotseat.java
@@ -114,8 +114,9 @@ public class Hotseat extends FrameLayout {
mContent.removeAllViewsInLayout();
}
- void addAllAppsFolder(IconCache iconCache, ArrayList<ApplicationInfo> allApps,
- ArrayList<ComponentName> onWorkspace, Launcher launcher) {
+ void addAllAppsFolder(IconCache iconCache,
+ ArrayList<ApplicationInfo> allApps, ArrayList<ComponentName> onWorkspace,
+ Launcher launcher, Workspace workspace) {
FolderInfo fi = new FolderInfo();
fi.cellX = getCellXFromOrder(mAllAppsButtonRank);
@@ -130,9 +131,8 @@ public class Hotseat extends FrameLayout {
fi.cellY, false);
FolderIcon folder = FolderIcon.fromXml(R.layout.folder_icon, launcher,
getLayout(), fi, iconCache);
-
- CellLayout.LayoutParams lp = new CellLayout.LayoutParams(fi.cellX,fi.cellY,1,1);
- mContent.addViewToCellLayout(folder, -1, 0, lp, true);
+ workspace.addInScreen(folder, fi.container, fi.screenId, fi.cellX, fi.cellY,
+ fi.spanX, fi.spanY);
for (ApplicationInfo info: allApps) {
ComponentName cn = info.intent.getComponent();