diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2013-04-19 15:27:57 -0700 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2013-04-19 15:29:10 -0700 |
commit | 1600796a43cf584b3db49c5f21ec103529d7368d (patch) | |
tree | 24e5ada93aee627f558993f5a5e299b70124b937 /src/com/android | |
parent | 8d732159c1093e7ce970cb34bc6d36a14f26e3fa (diff) | |
download | android_packages_apps_Snap-1600796a43cf584b3db49c5f21ec103529d7368d.tar.gz android_packages_apps_Snap-1600796a43cf584b3db49c5f21ec103529d7368d.tar.bz2 android_packages_apps_Snap-1600796a43cf584b3db49c5f21ec103529d7368d.zip |
Fix saved video timestamps.
Bug: 8002939
Change-Id: I771b2b4082acd19bbf9b52c65f51da9489827c18
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/camera/VideoModule.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index c7d45d95f..54d9f3633 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -45,6 +45,7 @@ import android.os.Message; import android.os.ParcelFileDescriptor; import android.os.SystemClock; import android.provider.MediaStore; +import android.provider.MediaStore.MediaColumns; import android.provider.MediaStore.Video; import android.util.Log; import android.view.KeyEvent; @@ -1344,10 +1345,11 @@ public class VideoModule implements CameraModule, String mime = convertOutputFormatToMimeType(outputFileFormat); String path = Storage.DIRECTORY + '/' + filename; String tmpPath = path + ".tmp"; - mCurrentVideoValues = new ContentValues(7); + mCurrentVideoValues = new ContentValues(9); mCurrentVideoValues.put(Video.Media.TITLE, title); mCurrentVideoValues.put(Video.Media.DISPLAY_NAME, filename); mCurrentVideoValues.put(Video.Media.DATE_TAKEN, dateTaken); + mCurrentVideoValues.put(MediaColumns.DATE_MODIFIED, dateTaken / 1000); mCurrentVideoValues.put(Video.Media.MIME_TYPE, mime); mCurrentVideoValues.put(Video.Media.DATA, path); mCurrentVideoValues.put(Video.Media.RESOLUTION, |