Skip to content

Commit 85ad62d

Browse files
authored
Update RepliesActivity.java
Fixed a bug on the Shared link.
1 parent 37fa6c8 commit 85ad62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/codeest/geeknews/ui/vtex/activity/RepliesActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ public boolean onCreateOptionsMenu(Menu menu) {
133133
}
134134
break;
135135
case R.id.action_copy:
136-
SystemUtil.copyToClipBoard(mContext, VtexApis.REPLIES_URL + id);
136+
SystemUtil.copyToClipBoard(mContext, VtexApis.REPLIES_URL + topicId);
137137
return true;
138138
case R.id.action_share:
139-
ShareUtil.shareText(mContext, VtexApis.REPLIES_URL + id, "分享一篇文章");
139+
ShareUtil.shareText(mContext, VtexApis.REPLIES_URL + topicId, "分享一篇文章");
140140
}
141141
return super.onOptionsItemSelected(item);
142142
}

0 commit comments

Comments
 (0)