Update sdk and dependencies

This commit is contained in:
Manuel Fuhr 2022-04-03 17:50:13 +02:00
parent d92c3beb3e
commit c80ad5f03b
2 changed files with 5 additions and 6 deletions

View file

@ -76,8 +76,8 @@ public class BImportActivity extends AppCompatActivity {
try (Cursor cursor = this.getContentResolver().query(intent.getData(), new String[]{
OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}, null, null, null)) {
if (cursor != null && cursor.moveToFirst()) {
filename = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
filesize = cursor.getLong(cursor.getColumnIndex(OpenableColumns.SIZE));
filename = cursor.getString(cursor.getColumnIndexOrThrow(OpenableColumns.DISPLAY_NAME));
filesize = cursor.getLong(cursor.getColumnIndexOrThrow(OpenableColumns.SIZE));
}
}
// is the file extention ".brf" in the file name