am b6341e9e: Fix launcher crash
Merge commit 'b6341e9ee293cfbccc553f0d204a1087968d6482' into eclair-mr2 * commit 'b6341e9ee293cfbccc553f0d204a1087968d6482': Fix launcher crash
This commit is contained in:
commit
bca63d4c5b
1 file changed
+4
-1
@@ -1318,7 +1318,10 @@ public final class Launcher extends Activity
|
|||||||
ViewGroup parent = (ViewGroup) folder.getParent();
|
ViewGroup parent = (ViewGroup) folder.getParent();
|
||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
parent.removeView(folder);
|
parent.removeView(folder);
|
||||||
mDragController.removeDropTarget((DropTarget)folder);
|
if (folder instanceof DropTarget) {
|
||||||
|
// Live folders aren't DropTargets.
|
||||||
|
mDragController.removeDropTarget((DropTarget)folder);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
folder.onClose();
|
folder.onClose();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user