|
@ -758,15 +758,14 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme |
|
|
popupMenu.setOnMenuItemClickListener(item -> { |
|
|
popupMenu.setOnMenuItemClickListener(item -> { |
|
|
final int itemId = item.getItemId(); |
|
|
final int itemId = item.getItemId(); |
|
|
if (itemId == R.id.share_dm) { |
|
|
if (itemId == R.id.share_dm) { |
|
|
if (profileModel.isPrivate()) { |
|
|
|
|
|
Toast.makeText(context, R.string.share_private_post, Toast.LENGTH_SHORT).show(); |
|
|
|
|
|
final UserSearchNavGraphDirections.ActionGlobalUserSearch actionGlobalUserSearch = UserSearchFragmentDirections |
|
|
|
|
|
.actionGlobalUserSearch() |
|
|
|
|
|
|
|
|
if (profileModel.isPrivate()) Toast.makeText(context, R.string.share_private_post, Toast.LENGTH_SHORT).show(); |
|
|
|
|
|
final PostViewV2FragmentDirections.ActionToUserSearch actionGlobalUserSearch = PostViewV2FragmentDirections |
|
|
|
|
|
.actionToUserSearch() |
|
|
.setTitle(getString(R.string.share)) |
|
|
.setTitle(getString(R.string.share)) |
|
|
.setActionLabel(getString(R.string.send)) |
|
|
.setActionLabel(getString(R.string.send)) |
|
|
.setShowGroups(true) |
|
|
.setShowGroups(true) |
|
|
.setMultiple(true) |
|
|
.setMultiple(true) |
|
|
.setSearchMode(UserSearchFragment.SearchMode.RAVEN); |
|
|
|
|
|
|
|
|
.setSearchMode(UserSearchMode.RAVEN); |
|
|
final NavController navController = NavHostFragment.findNavController(PostViewV2Fragment.this); |
|
|
final NavController navController = NavHostFragment.findNavController(PostViewV2Fragment.this); |
|
|
try { |
|
|
try { |
|
|
navController.navigate(actionGlobalUserSearch); |
|
|
navController.navigate(actionGlobalUserSearch); |
|
|