fix third party intent opening

This commit is contained in:
tibbi 2018-04-04 12:29:30 +02:00
parent fe57a74579
commit 41820dda15

View file

@ -438,7 +438,7 @@ class MainActivity : SimpleActivity(), SongListListener {
}
private fun initThirdPartyIntent() {
val realPath = intent.getStringExtra(REAL_FILE_PATH)
val realPath = intent.getStringExtra(REAL_FILE_PATH) ?: ""
var fileUri = intent.data
if (realPath.isNotEmpty()) {
fileUri = Uri.fromFile(File(realPath))