Show pin in timeline
This commit is contained in:
parent
7203880b3d
commit
00984797fd
|
@ -1262,6 +1262,26 @@ public class IssueCommentsAdapter extends RecyclerView.Adapter<RecyclerView.View
|
|||
|| issueComment.getType().equalsIgnoreCase("pull_cancel_scheduled_merge")) {
|
||||
timelineView.setVisibility(View.GONE);
|
||||
timelineDividerView.setVisibility(View.GONE);
|
||||
}
|
||||
// issue/pr pinned
|
||||
else if (issueComment.getType().equalsIgnoreCase("pin")) {
|
||||
TextView start = new TextView(context);
|
||||
|
||||
if (tinyDB.getInt("themeId") == 8) {
|
||||
if (!isNightModeThemeDynamic(context)) {
|
||||
start.setTextColor(AppUtil.dynamicColorResource(context));
|
||||
}
|
||||
}
|
||||
|
||||
start.setText(
|
||||
context.getString(
|
||||
R.string.timelinePinned, issueComment.getUser().getLogin(), info));
|
||||
|
||||
start.setTextSize(fontSize);
|
||||
|
||||
timelineIcon.setImageDrawable(
|
||||
ContextCompat.getDrawable(context, R.drawable.ic_pin));
|
||||
timelineData.addView(start);
|
||||
} else {
|
||||
timelineView.setVisibility(View.GONE);
|
||||
}
|
||||
|
|
|
@ -876,6 +876,7 @@
|
|||
<string name="timelineRefPr">%1$s referenced this pull request in #%2$d %3$s</string>
|
||||
<string name="timelineStatusRefIssue"><![CDATA[%1$s referenced this issue from a <font color=\'%2$d\'>%3$s</font> %4$s]]></string>
|
||||
<string name="timelineReviewLeftComment">%1$s left a comment: %2$s %3$s</string>
|
||||
<string name="timelinePinned">%1$s pinned this %2$s</string>
|
||||
|
||||
<string name="commitStatuses">Statuses</string>
|
||||
<string name="statusNoUrl">This status has no linked target URL.</string>
|
||||
|
|
Loading…
Reference in New Issue