Loading media/java/android/media/MediaScanner.java +9 −0 Original line number Diff line number Diff line Loading @@ -794,6 +794,15 @@ public class MediaScanner long time = exif.getGpsDateTime(); if (time != -1) { values.put(Images.Media.DATE_TAKEN, time); } else { // If no time zone information is available, we should consider using // EXIF local time as taken time if the difference between file time // and EXIF local time is not less than 1 Day, otherwise MediaProvider // will use file time as taken time. time = exif.getDateTime(); if (Math.abs(mLastModified * 1000 - time) >= 86400000) { values.put(Images.Media.DATE_TAKEN, time); } } int orientation = exif.getAttributeInt( Loading Loading
media/java/android/media/MediaScanner.java +9 −0 Original line number Diff line number Diff line Loading @@ -794,6 +794,15 @@ public class MediaScanner long time = exif.getGpsDateTime(); if (time != -1) { values.put(Images.Media.DATE_TAKEN, time); } else { // If no time zone information is available, we should consider using // EXIF local time as taken time if the difference between file time // and EXIF local time is not less than 1 Day, otherwise MediaProvider // will use file time as taken time. time = exif.getDateTime(); if (Math.abs(mLastModified * 1000 - time) >= 86400000) { values.put(Images.Media.DATE_TAKEN, time); } } int orientation = exif.getAttributeInt( Loading