Skip to content

Commit

Permalink
Merge pull request #13410 from nextcloud/doNotShareToOurApp
Browse files Browse the repository at this point in the history
Sharing to our app can cause troubles and is not needed (use copy)
  • Loading branch information
alperozturk96 committed Aug 16, 2024
2 parents 15b3380 + 1dd691b commit 5956b1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import com.nextcloud.android.common.ui.theme.utils.ColorRole
import com.nextcloud.client.di.Injectable
import com.nextcloud.client.utils.IntentUtil.createSendIntent
import com.nextcloud.utils.extensions.getParcelableArgument
import com.owncloud.android.BuildConfig
import com.owncloud.android.R
import com.owncloud.android.databinding.SendShareFragmentBinding
import com.owncloud.android.datamodel.OCFile
Expand Down Expand Up @@ -196,7 +197,7 @@ class SendShareDialog : BottomSheetDialogFragment(R.layout.send_share_fragment),
var label: CharSequence
val matches = requireActivity().packageManager.queryIntentActivities(sendIntent, 0)
val sendButtonDataList: MutableList<SendButtonData> = ArrayList(matches.size)
for (match in matches) {
for (match in matches.filterNot { m -> BuildConfig.APPLICATION_ID == m.activityInfo.packageName }) {
icon = match.loadIcon(requireActivity().packageManager)
label = match.loadLabel(requireActivity().packageManager)
sendButtonData = SendButtonData(
Expand Down

0 comments on commit 5956b1e

Please sign in to comment.