Browse Source

proper share link chooser

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
4a93d65253
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

2
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); final Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain"); sharingIntent.setType("text/plain");
sharingIntent.putExtra(Intent.EXTRA_TEXT, "https://instagram.com/" + profileModel.getUsername()); sharingIntent.putExtra(Intent.EXTRA_TEXT, "https://instagram.com/" + profileModel.getUsername());
startActivity(sharingIntent);
startActivity(Intent.createChooser(sharingIntent, null));
return true; return true;
} else if (itemId == R.id.share_dm) { } else if (itemId == R.id.share_dm) {
// final UserSearchNavGraphDirections.ActionGlobalUserSearch actionGlobalUserSearch = UserSearchFragmentDirections // final UserSearchNavGraphDirections.ActionGlobalUserSearch actionGlobalUserSearch = UserSearchFragmentDirections

Loading…
Cancel
Save