make intent not nullable

This commit is contained in:
tibbi 2017-06-17 21:42:05 +02:00
parent fcbda98175
commit 4ab6f9e807

View File

@ -56,7 +56,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
checkWhatsNewDialog()
storeStoragePaths()
intent?.apply {
intent.apply {
if (action == Intent.ACTION_SEND && type == MIME_TEXT_PLAIN) {
getStringExtra(Intent.EXTRA_TEXT)?.let {
displayNewNoteDialog(it)