check for null resultdata data at third party intents
This commit is contained in:
parent
0598d0f34c
commit
4e9e491f13
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||
if (resultCode == Activity.RESULT_OK) {
|
||||
if (requestCode == PICK_MEDIA && resultData != null) {
|
||||
if (requestCode == PICK_MEDIA && resultData?.data != null) {
|
||||
Intent().apply {
|
||||
val path = resultData.data.path
|
||||
val uri = Uri.fromFile(File(path))
|
||||
|
|
Loading…
Reference in a new issue