OSDN Git Service

Fix for deleted items not deleting sometimes.
[android-x86/packages-apps-Gallery2.git] / src / com / cooliris / media / LocalDataSource.java
index 2c92295..2bc5f46 100644 (file)
@@ -171,7 +171,6 @@ public final class LocalDataSource implements DataSource {
                     final String whereVideos = Video.VideoColumns.BUCKET_ID + "=" + Long.toString(set.mId);
                     cr.delete(uriImages, whereImages, null);
                     cr.delete(uriVideos, whereVideos, null);
-                    CacheService.markDirty(mContext);
                 }
                 if (set != null && items != null) {
                     // We need to remove these items from the set.
@@ -187,7 +186,6 @@ public final class LocalDataSource implements DataSource {
                     }
                     set.updateNumExpectedItems();
                     set.generateTitle(true);
-                    CacheService.markDirty(mContext, set.mId);
                 }
             }
             break;