File tree Expand file tree Collapse file tree
owncloudApp/src/main/java/com/owncloud/android/extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,17 +243,16 @@ fun AppCompatActivity.sendFile(file: File?) {
243243 if (file != null ) {
244244 val sendIntent: Intent = makeIntent(file, this )
245245
246- val packagesToExclude = arrayOf<String >()
247246 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ) {
248247 val shareSheetIntent = ShareSheetHelper ().getShareSheetIntent(
249- sendIntent,
250- this ,
251- R .string.activity_chooser_send_file_title,
252- packagesToExclude
248+ intent = sendIntent,
249+ context = this ,
250+ title = R .string.activity_chooser_send_file_title,
251+ packagesToExclude = arrayOf()
253252 )
254253 this .startActivity(shareSheetIntent)
255254 } else {
256- val chooserDialog: DialogFragment = ShareLinkToDialog .newInstance(sendIntent, packagesToExclude )
255+ val chooserDialog: DialogFragment = ShareLinkToDialog .newInstance(sendIntent, arrayOf() )
257256 chooserDialog.show(this .supportFragmentManager, " CHOOSER_DIALOG" )
258257 }
259258 } else {
You can’t perform that action at this time.
0 commit comments