fix 2206016 - Passion: Deleted Icons are added again after deleting folder on home screen

This commit is contained in:
Joe Onorato
2009-10-31 19:17:31 -04:00
parent 381a2a6f28
commit 3c2f7e105d
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1780,6 +1780,7 @@ public final class Launcher extends Activity
final Workspace workspace = mWorkspace;
int count = workspace.getChildCount();
for (int i = 0; i < count; i++) {
// Use removeAllViewsInLayout() to avoid an extra requestLayout() and invalidate().
((ViewGroup) workspace.getChildAt(i)).removeAllViewsInLayout();
}
@@ -603,6 +603,8 @@ public class LauncherModel extends BroadcastReceiver {
}
*/
mItems.clear();
final Cursor c = contentResolver.query(
LauncherSettings.Favorites.CONTENT_URI, null, null, null, null);