|
|
@ -193,6 +193,7 @@ public class SFragment extends Fragment { |
|
|
|
final String accountId = status.getActionableStatus().account.id; |
|
|
|
final String accountId = status.getActionableStatus().account.id; |
|
|
|
final String accountUsename = status.getActionableStatus().account.username; |
|
|
|
final String accountUsename = status.getActionableStatus().account.username; |
|
|
|
final Spanned content = status.getActionableStatus().content; |
|
|
|
final Spanned content = status.getActionableStatus().content; |
|
|
|
|
|
|
|
final String statusUrl = status.getActionableStatus().url; |
|
|
|
PopupMenu popup = new PopupMenu(getContext(), view); |
|
|
|
PopupMenu popup = new PopupMenu(getContext(), view); |
|
|
|
// Give a different menu depending on whether this is the user's own toot or not.
|
|
|
|
// Give a different menu depending on whether this is the user's own toot or not.
|
|
|
|
if (loggedInAccountId == null || !loggedInAccountId.equals(accountId)) { |
|
|
|
if (loggedInAccountId == null || !loggedInAccountId.equals(accountId)) { |
|
|
@ -205,8 +206,12 @@ public class SFragment extends Fragment { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean onMenuItemClick(MenuItem item) { |
|
|
|
public boolean onMenuItemClick(MenuItem item) { |
|
|
|
switch (item.getItemId()) { |
|
|
|
switch (item.getItemId()) { |
|
|
|
case R.id.status_follow: { |
|
|
|
case R.id.status_share: { |
|
|
|
follow(accountId); |
|
|
|
Intent sendIntent = new Intent(); |
|
|
|
|
|
|
|
sendIntent.setAction(Intent.ACTION_SEND); |
|
|
|
|
|
|
|
sendIntent.putExtra(Intent.EXTRA_TEXT, statusUrl); |
|
|
|
|
|
|
|
sendIntent.setType("text/plain"); |
|
|
|
|
|
|
|
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_status_to))); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
case R.id.status_block: { |
|
|
|
case R.id.status_block: { |
|
|
|