summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-10-31 19:17:31 -0400
committerJoe Onorato <joeo@android.com>2009-10-31 19:17:31 -0400
commit3c2f7e105d8daab439bff2c362a727ad348d8a44 (patch)
treef9620a85d88a9e98d906cbc37525947b4b6616d7
parent381a2a6f2831cbd2e56c82cd47bd90c15bc73f36 (diff)
downloadpackages_apps_trebuchet-3c2f7e105d8daab439bff2c362a727ad348d8a44.zip
packages_apps_trebuchet-3c2f7e105d8daab439bff2c362a727ad348d8a44.tar.gz
packages_apps_trebuchet-3c2f7e105d8daab439bff2c362a727ad348d8a44.tar.bz2
fix 2206016 - Passion: Deleted Icons are added again after deleting folder on home screen
-rw-r--r--src/com/android/launcher2/Launcher.java1
-rw-r--r--src/com/android/launcher2/LauncherModel.java2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 533222d..168b754 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -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();
}
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index ac8d3f3..110d788 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -603,6 +603,8 @@ public class LauncherModel extends BroadcastReceiver {
}
*/
+ mItems.clear();
+
final Cursor c = contentResolver.query(
LauncherSettings.Favorites.CONTENT_URI, null, null, null, null);