diff options
author | Owen Lin <owenlin@google.com> | 2009-04-17 11:31:27 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-04-17 15:54:11 +0800 |
commit | bbc560b5216bbb2e3028020e426ce6a6e0e5df08 (patch) | |
tree | 50505bac13a3d0e66efdf9d1edb5c2c49f9782c9 /src/com/android/camera/gallery/BaseImage.java | |
parent | c8cd9098d9ca174f5a0374789145faf1f15d503d (diff) | |
download | LegacyCamera-bbc560b5216bbb2e3028020e426ce6a6e0e5df08.zip LegacyCamera-bbc560b5216bbb2e3028020e426ce6a6e0e5df08.tar.gz LegacyCamera-bbc560b5216bbb2e3028020e426ce6a6e0e5df08.tar.bz2 |
Code cleanup. Try to remove some depercated usage of cursor.commitUpadtes()
Diffstat (limited to 'src/com/android/camera/gallery/BaseImage.java')
-rw-r--r-- | src/com/android/camera/gallery/BaseImage.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/com/android/camera/gallery/BaseImage.java b/src/com/android/camera/gallery/BaseImage.java index 27e863c..66d9289 100644 --- a/src/com/android/camera/gallery/BaseImage.java +++ b/src/com/android/camera/gallery/BaseImage.java @@ -40,7 +40,6 @@ import java.util.HashMap; * the path to the actual image data. */ public abstract class BaseImage implements IImage { - private static final boolean VERBOSE = false; private static final String TAG = "BaseImage"; private static final int UNKNOWN_LENGTH = -1; @@ -67,16 +66,6 @@ public abstract class BaseImage implements IImage { protected abstract Bitmap.CompressFormat compressionType(); - public void commitChanges() { - Cursor c = getCursor(); - synchronized (c) { - if (c.moveToPosition(getRow())) { - c.commitUpdates(); - c.requery(); - } - } - } - private class CompressImageToFile extends BaseCancelable<Boolean> { private ThreadSafeOutputStream mOutputStream = null; @@ -410,6 +399,7 @@ public abstract class BaseImage implements IImage { synchronized (c) { if (c.moveToPosition(getRow())) { c.updateString(mContainer.indexTitle(), name); + c.commitUpdates(); } } } |