Skip to content

Commit

Permalink
fix(android): support picking 2+ GB files (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored Nov 26, 2022
1 parent 1e6ddde commit a3d0f72
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ private WritableMap getMetadata(Uri uri) {
map.putString(FIELD_TYPE, cursor.getString(mimeIndex));
}
int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);
if (!cursor.isNull(sizeIndex)) {
map.putInt(FIELD_SIZE, cursor.getInt(sizeIndex));
} else {
if (cursor.isNull(sizeIndex)) {
map.putNull(FIELD_SIZE);
} else {
map.putDouble(FIELD_SIZE, cursor.getLong(sizeIndex));
}
}
}
Expand Down

0 comments on commit a3d0f72

Please sign in to comment.