Skip to content

Commit 5b14ec6

Browse files
committed
cr fix
1 parent ec0a7de commit 5b14ec6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • owncloudApp/src/main/java/com/owncloud/android/extensions

owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)