Update sdk and dependencies
This commit is contained in:
parent
d92c3beb3e
commit
c80ad5f03b
2 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue