mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix time travelling photo upload bug (again)
This commit is contained in:
parent
88d360da54
commit
0a493dc8a1
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ public class UploadService extends IntentService {
|
|||
new String[] { MediaStore.Images.ImageColumns.DATE_TAKEN }, null, null, null);
|
||||
if(cursor.getCount() != 0) {
|
||||
cursor.moveToFirst();
|
||||
dateCreated = new Date(cursor.getInt(0));
|
||||
dateCreated = new Date(cursor.getLong(0));
|
||||
}
|
||||
} else if (mimeType.startsWith("audio/")) {
|
||||
String srcPath = this.getRealPathFromURI(mediaUri);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue