If the size column isn't there then we don't know
(cherry picked from commit d7f58e94f1dc59dad10f82c2ba751484ffaa1616)
This commit is contained in:
parent
0f4be7611b
commit
44d9d9622f
1 changed files with 1 additions and 0 deletions
|
@ -677,6 +677,7 @@ public class FileBackend {
|
|||
cursor = mXmppConnectionService.getContentResolver().query(uri, null, null, null, null);
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);
|
||||
if (sizeIndex < 0) return 0;
|
||||
return cursor.getLong(sizeIndex);
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue