Skip to content

Commit

Permalink
Use color resource correctly (fix #356)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Mar 26, 2015
1 parent 22b05b4 commit 74296f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/org/kontalk/ui/MessagingNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ else if (content == null && attMime != null) {
if (count < 5) {
SpannableStringBuilder buf = new SpannableStringBuilder();
buf.append(name).append(' ');
buf.setSpan(new ForegroundColorSpan(R.color.notification_name_color), 0, buf.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
buf.setSpan(new ForegroundColorSpan(context.getResources()
.getColor(R.color.notification_name_color)),
0, buf.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
// take just the last message
buf.append(convs.get(user)[1]);

Expand Down

0 comments on commit 74296f6

Please sign in to comment.