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

Merge commit '3c2f7e105d8daab439bff2c362a727ad348d8a44' into eclair-mr2

* commit '3c2f7e105d8daab439bff2c362a727ad348d8a44':
  fix 2206016 - Passion: Deleted Icons are added again after deleting folder on home screen
This commit is contained in:
Joe Onorato
2009-10-31 16:24:31 -07:00
committed by Android Git Automerger
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);