mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-14 02:37:30 +00:00
close #1605
This commit is contained in:
parent
ce764ec82f
commit
57ffd32c83
@ -755,6 +755,8 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme
|
||||
popupMenu.setOnMenuItemClickListener(item -> {
|
||||
final int itemId = item.getItemId();
|
||||
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()
|
||||
.setTitle(getString(R.string.share))
|
||||
|
@ -797,6 +797,13 @@ class StoryViewerFragment : Fragment() {
|
||||
}
|
||||
|
||||
private fun shareStoryViaDm() {
|
||||
val story = storiesViewModel.getCurrentStory().value ?: return
|
||||
val context = context
|
||||
if (story.user?.isPrivate == true && context != null) {
|
||||
Toast.makeText(context, R.string.share_private_post, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
val actionBar = fragmentActivity.supportActionBar
|
||||
if (actionBar != null) actionBar.subtitle = null
|
||||
val actionGlobalUserSearch = UserSearchFragmentDirections.actionGlobalUserSearch().apply {
|
||||
title = getString(R.string.share)
|
||||
setActionLabel(getString(R.string.send))
|
||||
|
Loading…
Reference in New Issue
Block a user