mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 10:45:13 +01:00
Fix last message author bolding
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f68b8854e9
commit
115f25c0c1
@ -169,8 +169,8 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
|
|||||||
String fullString = authorDisplayName + conversation.getLastMessage().getLastMessageDisplayText();
|
String fullString = authorDisplayName + conversation.getLastMessage().getLastMessageDisplayText();
|
||||||
Spannable spannableString = new SpannableString(fullString);
|
Spannable spannableString = new SpannableString(fullString);
|
||||||
final StyleSpan boldStyleSpan = new StyleSpan(Typeface.BOLD);
|
final StyleSpan boldStyleSpan = new StyleSpan(Typeface.BOLD);
|
||||||
spannableString.setSpan(boldStyleSpan, 0, fullString.indexOf(" "), Spannable
|
spannableString.setSpan(boldStyleSpan, 0, authorDisplayName.length(), Spannable
|
||||||
.SPAN_INCLUSIVE_EXCLUSIVE);
|
.SPAN_INCLUSIVE_INCLUSIVE);
|
||||||
|
|
||||||
holder.dialogLastMessage.setText(spannableString);
|
holder.dialogLastMessage.setText(spannableString);
|
||||||
|
|
||||||
|
@ -556,7 +556,6 @@ public class CallController extends BaseController {
|
|||||||
localVideoTrack = peerConnectionFactory.createVideoTrack("NCv0", videoSource);
|
localVideoTrack = peerConnectionFactory.createVideoTrack("NCv0", videoSource);
|
||||||
localMediaStream.addTrack(localVideoTrack);
|
localMediaStream.addTrack(localVideoTrack);
|
||||||
localVideoTrack.setEnabled(false);
|
localVideoTrack.setEnabled(false);
|
||||||
|
|
||||||
localVideoTrack.addSink(pipVideoView);
|
localVideoTrack.addSink(pipVideoView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user