summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Folder.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-04-12 16:29:25 -0700
committerMichael Jurka <mikejurka@google.com>2011-04-15 13:32:42 -0700
commit66d72178af91d455700875635473be942bc90e54 (patch)
treee63fe0a19648419679962aa973be5977cccb3d58 /src/com/android/launcher2/Folder.java
parent8a71ca86b2cd106540d407c42e6579775e429a58 (diff)
downloadandroid_packages_apps_Trebuchet-66d72178af91d455700875635473be942bc90e54.tar.gz
android_packages_apps_Trebuchet-66d72178af91d455700875635473be942bc90e54.tar.bz2
android_packages_apps_Trebuchet-66d72178af91d455700875635473be942bc90e54.zip
Changing folders to use CellLayouts
Change-Id: Ic80bece18855a4f5d2476c224ef66f035ac7c97b
Diffstat (limited to 'src/com/android/launcher2/Folder.java')
-rw-r--r--src/com/android/launcher2/Folder.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java
index 059e73d8b..33a1cd35b 100644
--- a/src/com/android/launcher2/Folder.java
+++ b/src/com/android/launcher2/Folder.java
@@ -37,7 +37,6 @@ import com.android.launcher.R;
public class Folder extends LinearLayout implements DragSource, OnItemLongClickListener,
OnItemClickListener, OnClickListener, View.OnLongClickListener {
- protected AbsListView mContent;
protected DragController mDragController;
protected Launcher mLauncher;
@@ -66,10 +65,6 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL
protected void onFinishInflate() {
super.onFinishInflate();
- mContent = (AbsListView) findViewById(R.id.folder_content);
- mContent.setOnItemClickListener(this);
- mContent.setOnItemLongClickListener(this);
-
mCloseButton = (Button) findViewById(R.id.folder_close);
mCloseButton.setOnClickListener(this);
mCloseButton.setOnLongClickListener(this);
@@ -121,18 +116,7 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL
public void onDragViewVisible() {
}
- /**
- * Sets the adapter used to populate the content area. The adapter must only
- * contains ShortcutInfo items.
- *
- * @param adapter The list of applications to display in the folder.
- */
- void setContentAdapter(BaseAdapter adapter) {
- mContent.setAdapter(adapter);
- }
-
void notifyDataSetChanged() {
- ((BaseAdapter) mContent.getAdapter()).notifyDataSetChanged();
}
void setLauncher(Launcher launcher) {
@@ -146,10 +130,7 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL
return mInfo;
}
- // When the folder opens, we need to refresh the GridView's selection by
- // forcing a layout
void onOpen() {
- mContent.requestLayout();
}
void onClose() {