From 4a93d65253ff2ad8e4832c5aded5b51787ed38cb Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 21 Jun 2021 15:55:24 -0400 Subject: [PATCH] proper share link chooser --- .../java/awais/instagrabber/fragments/main/ProfileFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java index a8c26707..96d97d3e 100644 --- a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java @@ -583,7 +583,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe final Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/plain"); sharingIntent.putExtra(Intent.EXTRA_TEXT, "https://instagram.com/" + profileModel.getUsername()); - startActivity(sharingIntent); + startActivity(Intent.createChooser(sharingIntent, null)); return true; } else if (itemId == R.id.share_dm) { // final UserSearchNavGraphDirections.ActionGlobalUserSearch actionGlobalUserSearch = UserSearchFragmentDirections