am fe2fb826: am d65fb393: Merge "Revert "Fixing crash in empty folders. (Bug 11627191)"" into jb-ub-now-jolly-elf
* commit 'fe2fb82657d52c17c9a09fb74e140b80db634a8c': Revert "Fixing crash in empty folders. (Bug 11627191)"
This commit is contained in:
@@ -408,15 +408,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
|||||||
mFolderName.setText("");
|
mFolderName.setText("");
|
||||||
}
|
}
|
||||||
updateItemLocationsInDatabase();
|
updateItemLocationsInDatabase();
|
||||||
|
|
||||||
// In case any children didn't come across during loading, clean up the folder accordingly
|
|
||||||
mFolderIcon.post(new Runnable() {
|
|
||||||
public void run() {
|
|
||||||
if (getItemCount() <= 1) {
|
|
||||||
replaceFolderWithFinalItem();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1114,8 +1105,6 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
|||||||
View finalChild = getItemAt(0);
|
View finalChild = getItemAt(0);
|
||||||
if (finalChild != null) {
|
if (finalChild != null) {
|
||||||
mFolderIcon.performDestroyAnimation(finalChild, onCompleteRunnable);
|
mFolderIcon.performDestroyAnimation(finalChild, onCompleteRunnable);
|
||||||
} else {
|
|
||||||
onCompleteRunnable.run();
|
|
||||||
}
|
}
|
||||||
mDestroyed = true;
|
mDestroyed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
package com.android.launcher3;
|
package com.android.launcher3;
|
||||||
|
|
||||||
import android.content.ContentValues;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import android.content.ContentValues;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a folder containing shortcuts or apps.
|
* Represents a folder containing shortcuts or apps.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -584,9 +584,8 @@ public class LauncherModel extends BroadcastReceiver {
|
|||||||
// as in Workspace.onDrop. Here, we just add/remove them from the list of items
|
// as in Workspace.onDrop. Here, we just add/remove them from the list of items
|
||||||
// that are on the desktop, as appropriate
|
// that are on the desktop, as appropriate
|
||||||
ItemInfo modelItem = sBgItemsIdMap.get(itemId);
|
ItemInfo modelItem = sBgItemsIdMap.get(itemId);
|
||||||
if (modelItem != null &&
|
if (modelItem.container == LauncherSettings.Favorites.CONTAINER_DESKTOP ||
|
||||||
(modelItem.container == LauncherSettings.Favorites.CONTAINER_DESKTOP ||
|
modelItem.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
|
||||||
modelItem.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT)) {
|
|
||||||
switch (modelItem.itemType) {
|
switch (modelItem.itemType) {
|
||||||
case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION:
|
case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION:
|
||||||
case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT:
|
case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT:
|
||||||
|
|||||||
Reference in New Issue
Block a user