Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0eb687fd authored by Dan Sandler's avatar Dan Sandler
Browse files

Quick patch for b/12446428.

Bug: 12446428
Change-Id: I5b9472e55a8919f5640c6e97fede9b5637819be0
parent b54a5989
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1107,7 +1107,10 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
                if (getItemCount() <= 1) {
                    // Remove the folder
                    LauncherModel.deleteItemFromDatabase(mLauncher, mInfo);
                    if (cellLayout != null) {
                        // b/12446428 -- sometimes the cell layout has already gone away?
                        cellLayout.removeView(mFolderIcon);
                    }
                    if (mFolderIcon instanceof DropTarget) {
                        mDragController.removeDropTarget((DropTarget) mFolderIcon);
                    }