summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher/UserFolder.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:58 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:58 -0800
commitd097a1880f2339705486d50cd8b33c6088fa9fa5 (patch)
tree711ec61755822f2bda1d4b2719691db2142ed607 /src/com/android/launcher/UserFolder.java
parentc8f00b61c600927ab404c84686d4472e9b527976 (diff)
downloadandroid_packages_apps_Trebuchet-d097a1880f2339705486d50cd8b33c6088fa9fa5.tar.gz
android_packages_apps_Trebuchet-d097a1880f2339705486d50cd8b33c6088fa9fa5.tar.bz2
android_packages_apps_Trebuchet-d097a1880f2339705486d50cd8b33c6088fa9fa5.zip
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'src/com/android/launcher/UserFolder.java')
-rw-r--r--src/com/android/launcher/UserFolder.java19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/com/android/launcher/UserFolder.java b/src/com/android/launcher/UserFolder.java
index dee44baa0..1044e969f 100644
--- a/src/com/android/launcher/UserFolder.java
+++ b/src/com/android/launcher/UserFolder.java
@@ -1,7 +1,6 @@
package com.android.launcher;
import android.content.Context;
-import com.android.internal.provider.Settings;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
@@ -31,8 +30,8 @@ public class UserFolder extends Folder implements DropTarget {
Object dragInfo) {
final ItemInfo item = (ItemInfo) dragInfo;
final int itemType = item.itemType;
- return (itemType == Settings.Favorites.ITEM_TYPE_APPLICATION ||
- itemType == Settings.Favorites.ITEM_TYPE_SHORTCUT) && item.container != mInfo.id;
+ return (itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION ||
+ itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) && item.container != mInfo.id;
}
public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo) {
@@ -52,13 +51,6 @@ public class UserFolder extends Folder implements DropTarget {
}
@Override
- public boolean onLongClick(View v) {
- mLauncher.closeFolder(this);
- mLauncher.showRenameDialog((UserFolderInfo) mInfo);
- return true;
- }
-
- @Override
public void onDropCompleted(View target, boolean success) {
if (success) {
//noinspection unchecked
@@ -68,10 +60,9 @@ public class UserFolder extends Folder implements DropTarget {
}
}
- void bind(UserFolderInfo info) {
- mInfo = info;
- setContentAdapter(new ApplicationsAdapter(mContext, info.contents));
- mCloseButton.setText(info.title);
+ void bind(FolderInfo info) {
+ super.bind(info);
+ setContentAdapter(new ApplicationsAdapter(mContext, ((UserFolderInfo) info).contents));
}
// When the folder opens, we need to refresh the GridView's selection by