summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-06-10 15:51:42 -0700
committerztenghui <ztenghui@google.com>2013-06-19 11:20:26 -0700
commitb3f62e4ed7a80010017dc3893460ca9043afb383 (patch)
treea0e82ea32ab75197381ef14d1bf37b3a49e147b0 /src/com/android/gallery3d/util
parent13c3b46032990be905c885f38b9590ab19bd9398 (diff)
downloadandroid_packages_apps_Gallery2-b3f62e4ed7a80010017dc3893460ca9043afb383.tar.gz
android_packages_apps_Gallery2-b3f62e4ed7a80010017dc3893460ca9043afb383.tar.bz2
android_packages_apps_Gallery2-b3f62e4ed7a80010017dc3893460ca9043afb383.zip
Setup the saving framework to support hiding original photo for editor.
This new approach will try to hide the original image into an auxiliary directory. User will only see one edited image, while being able to go back to the original image in the editor. Refactor SaveCopyTask for more private funcs and more comments. bug:9468909 Change-Id: I866321d23e6db0b3dbd08fec2a6a7e3142b17b65
Diffstat (limited to 'src/com/android/gallery3d/util')
-rw-r--r--src/com/android/gallery3d/util/SaveVideoFileUtils.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/util/SaveVideoFileUtils.java b/src/com/android/gallery3d/util/SaveVideoFileUtils.java
index e2c5f51b9..da0970b1d 100644
--- a/src/com/android/gallery3d/util/SaveVideoFileUtils.java
+++ b/src/com/android/gallery3d/util/SaveVideoFileUtils.java
@@ -25,17 +25,13 @@ import android.os.Environment;
import android.provider.MediaStore.Video;
import android.provider.MediaStore.Video.VideoColumns;
+import com.android.gallery3d.filtershow.tools.SaveCopyTask.ContentResolverQueryCallback;
+
import java.io.File;
import java.sql.Date;
import java.text.SimpleDateFormat;
public class SaveVideoFileUtils {
- // Copy from SaveCopyTask.java in terms of how to handle the destination
- // path and filename : querySource() and getSaveDirectory().
- public interface ContentResolverQueryCallback {
- void onCursorResult(Cursor cursor);
- }
-
// This function can decide which folder to save the video file, and generate
// the needed information for the video file including filename.
public static SaveVideoFileInfo getDstMp4FileInfo(String fileNameFormat,