Fix a nullability problem
This commit is contained in:
parent
b937f437c4
commit
59e7a9dc03
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import org.ligi.passandroid.R
|
|||
import org.ligi.passandroid.model.InputStreamWithSource
|
||||
import org.ligi.passandroid.ui.UnzipPassController.InputStreamUnzipControllerSpec
|
||||
|
||||
internal class ImportAndShowAsyncTask(val passImportActivity: PassImportActivity, val intent_uri: Uri) : AsyncTask<Void, Void, InputStreamWithSource>() {
|
||||
internal class ImportAndShowAsyncTask(val passImportActivity: PassImportActivity, val intent_uri: Uri) : AsyncTask<Void, Void, InputStreamWithSource?>() {
|
||||
|
||||
private val progressDialog by lazy {
|
||||
val progressDialog = ProgressDialog(passImportActivity)
|
||||
|
@ -17,7 +17,7 @@ internal class ImportAndShowAsyncTask(val passImportActivity: PassImportActivity
|
|||
progressDialog
|
||||
}
|
||||
|
||||
override fun doInBackground(vararg params: Void): InputStreamWithSource {
|
||||
override fun doInBackground(vararg params: Void): InputStreamWithSource? {
|
||||
return InputStreamProvider.fromURI(passImportActivity, intent_uri)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue