Fix last message author bolding

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-01-02 22:43:43 +01:00
parent f68b8854e9
commit 115f25c0c1
2 changed files with 2 additions and 3 deletions

View file

@ -169,8 +169,8 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
String fullString = authorDisplayName + conversation.getLastMessage().getLastMessageDisplayText();
Spannable spannableString = new SpannableString(fullString);
final StyleSpan boldStyleSpan = new StyleSpan(Typeface.BOLD);
spannableString.setSpan(boldStyleSpan, 0, fullString.indexOf(" "), Spannable
.SPAN_INCLUSIVE_EXCLUSIVE);
spannableString.setSpan(boldStyleSpan, 0, authorDisplayName.length(), Spannable
.SPAN_INCLUSIVE_INCLUSIVE);
holder.dialogLastMessage.setText(spannableString);

View file

@ -556,7 +556,6 @@ public class CallController extends BaseController {
localVideoTrack = peerConnectionFactory.createVideoTrack("NCv0", videoSource);
localMediaStream.addTrack(localVideoTrack);
localVideoTrack.setEnabled(false);
localVideoTrack.addSink(pipVideoView);
}