1
0
Fork 1

If the size column isn't there then we don't know

(cherry picked from commit d7f58e94f1dc59dad10f82c2ba751484ffaa1616)
This commit is contained in:
Stephen Paul Weber 2024-11-18 15:24:50 -05:00 committed by Arne
parent 0f4be7611b
commit 44d9d9622f

View file

@ -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 {