final ContentResolver cr = context.getContentResolver();
values.put(LauncherSettings.Favorites.CONTAINER, item.container);
- values.put(LauncherSettings.Favorites.CELLX, item.cellX);
- values.put(LauncherSettings.Favorites.CELLY, item.cellY);
+ values.put(LauncherSettings.Favorites.CELLX, cellX);
+ values.put(LauncherSettings.Favorites.CELLY, cellY);
values.put(LauncherSettings.Favorites.SCREEN, item.screen);
- cr.update(LauncherSettings.Favorites.getContentUri(item.id, false), values, null, null);
+ new Thread("moveItemInDatabase") {
+ public void run() {
+ cr.update(uri, values, null, null);
+ }
+ }.start();
}
/**