mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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() {
|
||||
try {
|
||||
ExifInterface exif = new ExifInterface(file.getAbsolutePath());
|
||||
@SuppressLint("RestrictedApi") long dateTime = exif.getDateTime();
|
||||
if (dateTime != -1) {
|
||||
@SuppressLint("RestrictedApi") Long dateTime = exif.getDateTime();
|
||||
if(dateTime != null){
|
||||
Date date = new Date(dateTime);
|
||||
return new DateTimeWithSource(date, DateTimeWithSource.EXIF_SOURCE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue