Fixing bug 5011917 - clearing refernce to old folders from FolderInfo

-> Also, ensured that unbind() gets called on all ItemInfos on rotate

Change-Id: I869b68fcae5c66702ec204596f5ecabdc7a32df7
This commit is contained in:
Adam Cohen committed 2011-07-11 18:37:16 -07:00
1 parent 51e95039ac
commit 4eac29a80b
6 files changed
+45 -45

No files matched your search

+6 -10
View File
@@ -54,14 +54,12 @@ import java.util.ArrayList;
public class Folder extends LinearLayout implements DragSource, View.OnClickListener,
View.OnLongClickListener, DropTarget, FolderListener, TextView.OnEditorActionListener {
protected DragController mDragController;
protected Launcher mLauncher;
protected FolderInfo mInfo;
private static final String TAG = "Launcher.Folder";
protected DragController mDragController;
protected Launcher mLauncher;
protected FolderInfo mInfo;
static final int STATE_NONE = -1;
static final int STATE_SMALL = 0;
static final int STATE_ANIMATING = 1;
@@ -132,6 +130,8 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
if (sHintText == null) {
sHintText = res.getString(R.string.folder_hint_text);
}
mLauncher = (Launcher) context;
}
@Override
@@ -286,10 +286,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
mDragController = dragController;
}
void setLauncher(Launcher launcher) {
mLauncher = launcher;
}
void setFolderIcon(FolderIcon icon) {
mFolderIcon = icon;
}