Fix a nullability problem

This commit is contained in:
ligi 2016-10-08 14:50:54 +02:00
parent b937f437c4
commit 59e7a9dc03

View file

@ -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)
}