summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/gallery3d/data/DataManager.java12
-rw-r--r--src/com/android/gallery3d/data/LocalAlbum.java1
-rw-r--r--src/com/android/gallery3d/data/LocalImage.java1
-rw-r--r--src/com/android/gallery3d/data/LocalVideo.java1
4 files changed, 0 insertions, 15 deletions
diff --git a/src/com/android/gallery3d/data/DataManager.java b/src/com/android/gallery3d/data/DataManager.java
index 3d2c0c2f0..408a24b13 100644
--- a/src/com/android/gallery3d/data/DataManager.java
+++ b/src/com/android/gallery3d/data/DataManager.java
@@ -85,9 +85,6 @@ public class DataManager {
private static final String TOP_LOCAL_VIDEO_SET_PATH = "/local/video";
- private static final String ACTION_DELETE_PICTURE =
- "com.android.gallery3d.action.DELETE_PICTURE";
-
public static final Comparator<MediaItem> sDateTakenComparator =
new DateTakenComparator();
@@ -335,15 +332,6 @@ public class DataManager {
}
}
- // Sends a local broadcast if a local image or video is deleted. This is
- // used to update the thumbnail shown in the camera app.
- public void broadcastLocalDeletion() {
- LocalBroadcastManager manager = LocalBroadcastManager.getInstance(
- mApplication.getAndroidContext());
- Intent intent = new Intent(ACTION_DELETE_PICTURE);
- manager.sendBroadcast(intent);
- }
-
private static class NotifyBroker extends ContentObserver {
private WeakHashMap<ChangeNotifier, Object> mNotifiers =
new WeakHashMap<ChangeNotifier, Object>();
diff --git a/src/com/android/gallery3d/data/LocalAlbum.java b/src/com/android/gallery3d/data/LocalAlbum.java
index 4682e7792..8bbc364ec 100644
--- a/src/com/android/gallery3d/data/LocalAlbum.java
+++ b/src/com/android/gallery3d/data/LocalAlbum.java
@@ -267,7 +267,6 @@ public class LocalAlbum extends MediaSet {
GalleryUtils.assertNotInRenderThread();
mResolver.delete(mBaseUri, mWhereClause,
new String[]{String.valueOf(mBucketId)});
- mApplication.getDataManager().broadcastLocalDeletion();
}
@Override
diff --git a/src/com/android/gallery3d/data/LocalImage.java b/src/com/android/gallery3d/data/LocalImage.java
index 2ba784de7..61961d87a 100644
--- a/src/com/android/gallery3d/data/LocalImage.java
+++ b/src/com/android/gallery3d/data/LocalImage.java
@@ -322,7 +322,6 @@ public class LocalImage extends LocalMediaItem {
Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI;
mApplication.getContentResolver().delete(baseUri, "_id=?",
new String[]{String.valueOf(id)});
- mApplication.getDataManager().broadcastLocalDeletion();
}
private static String getExifOrientation(int orientation) {
diff --git a/src/com/android/gallery3d/data/LocalVideo.java b/src/com/android/gallery3d/data/LocalVideo.java
index 5b6ee4b33..c876d81b1 100644
--- a/src/com/android/gallery3d/data/LocalVideo.java
+++ b/src/com/android/gallery3d/data/LocalVideo.java
@@ -187,7 +187,6 @@ public class LocalVideo extends LocalMediaItem {
Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI;
mApplication.getContentResolver().delete(baseUri, "_id=?",
new String[]{String.valueOf(id)});
- mApplication.getDataManager().broadcastLocalDeletion();
}
@Override