如何修复此功能的Nameerror?

时间:2018-10-20 19:56:50

标签: python

val fileUri = FileProvider.getUriForFile(context, context.packageName + ".fileprovider", pdfFile)
val shareIntent = ShareCompat.IntentBuilder
                .from(this@MainActivity)
                .setType(baseContext.contentResolver.getType(fileUri))
                .setStream(fileUri)
                .setSubject(getString(R.string.app_name))
                .setText("Please find attached ...")
                .setEmailTo(arrayOf("email@gmail.com"))
                .intent // added this
shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
startActivity(shareIntent)

1 个答案:

答案 0 :(得分:0)

在底部移动打印行:

rrow, rcol = first_replacement_loc(rows, cols, rotations)