|
|
@ -61,6 +61,7 @@ public class AccountActivity extends BaseActivity { |
|
|
|
private boolean isSelf; |
|
|
|
private boolean isSelf; |
|
|
|
private String openInWebUrl; |
|
|
|
private String openInWebUrl; |
|
|
|
private TabLayout tabLayout; |
|
|
|
private TabLayout tabLayout; |
|
|
|
|
|
|
|
private Account loadedAccount; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) { |
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) { |
|
|
@ -170,6 +171,8 @@ public class AccountActivity extends BaseActivity { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void onObtainAccountSuccess(Account account) { |
|
|
|
private void onObtainAccountSuccess(Account account) { |
|
|
|
|
|
|
|
loadedAccount = account; |
|
|
|
|
|
|
|
|
|
|
|
TextView username = (TextView) findViewById(R.id.account_username); |
|
|
|
TextView username = (TextView) findViewById(R.id.account_username); |
|
|
|
TextView displayName = (TextView) findViewById(R.id.account_display_name); |
|
|
|
TextView displayName = (TextView) findViewById(R.id.account_display_name); |
|
|
|
TextView note = (TextView) findViewById(R.id.account_note); |
|
|
|
TextView note = (TextView) findViewById(R.id.account_note); |
|
|
@ -448,6 +451,12 @@ public class AccountActivity extends BaseActivity { |
|
|
|
onBackPressed(); |
|
|
|
onBackPressed(); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
case R.id.action_mention: { |
|
|
|
|
|
|
|
Intent intent = new Intent(this, ComposeActivity.class); |
|
|
|
|
|
|
|
intent.putExtra("mentioned_usernames", new String[] { loadedAccount.username }); |
|
|
|
|
|
|
|
startActivity(intent); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
case R.id.action_open_in_web: { |
|
|
|
case R.id.action_open_in_web: { |
|
|
|
Uri uri = Uri.parse(openInWebUrl); |
|
|
|
Uri uri = Uri.parse(openInWebUrl); |
|
|
|
Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
|
|
|
Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
|
|
|