@Override public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case R.id.action_open_in_browser: ShipUtils.openUrlByBrowser(this, "https://cnodejs.org/topic/" + topicId); return true; default: return false; } }
@OnClick(R.id.user_detail_tv_github_username) protected void onBtnGithubUsernameClick() { if (!TextUtils.isEmpty(githubUsername)) { ShipUtils.openInBrowser(this, "https://github.com/" + githubUsername); } }