mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
* ExifFixed * requested changes * requested changes * indentation
This commit is contained in:
parent
6293f90950
commit
7cb5ff9167
1 changed files with 2 additions and 2 deletions
|
|
@ -124,8 +124,8 @@ public class UploadableFile implements Parcelable {
|
||||||
private DateTimeWithSource getDateTimeFromExif() {
|
private DateTimeWithSource getDateTimeFromExif() {
|
||||||
try {
|
try {
|
||||||
ExifInterface exif = new ExifInterface(file.getAbsolutePath());
|
ExifInterface exif = new ExifInterface(file.getAbsolutePath());
|
||||||
@SuppressLint("RestrictedApi") long dateTime = exif.getDateTime();
|
@SuppressLint("RestrictedApi") Long dateTime = exif.getDateTime();
|
||||||
if (dateTime != -1) {
|
if(dateTime != null){
|
||||||
Date date = new Date(dateTime);
|
Date date = new Date(dateTime);
|
||||||
return new DateTimeWithSource(date, DateTimeWithSource.EXIF_SOURCE);
|
return new DateTimeWithSource(date, DateTimeWithSource.EXIF_SOURCE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue