diff --git a/build.gradle b/build.gradle
index 509e33b45..5a9e112a2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -68,7 +68,7 @@ android {
testBuildType 'debugTest'
defaultConfig {
- versionCode 218
+ versionCode 219
versionName "4.15"
minSdkVersion 17
targetSdkVersion 28
diff --git a/irccloud-android.iml b/irccloud-android.iml
index 87ee1a0b4..51876a0c3 100644
--- a/irccloud-android.iml
+++ b/irccloud-android.iml
@@ -74,6 +74,7 @@
+
@@ -88,6 +89,7 @@
+
@@ -95,11 +97,16 @@
+
+
+
+
+
diff --git a/src/com/irccloud/android/data/model/Event.java b/src/com/irccloud/android/data/model/Event.java
index 2e2b6df9e..cacad897a 100644
--- a/src/com/irccloud/android/data/model/Event.java
+++ b/src/com/irccloud/android/data/model/Event.java
@@ -177,22 +177,23 @@ public Event(Event e) {
public String toString() {
return "{" +
"cid: " + cid +
- " bid: " + bid +
- " eid: " + eid +
- " type: " + type +
- " timestamp: " + timestamp +
- " from: " + from +
- " hostmask: " + hostmask +
- " msg: " + msg +
- " html: " + html +
- " group_eid: " + group_eid +
- " group_msg: " + group_msg +
- " pending: " + pending +
- " self: " + self +
- " header: " + header +
- " avatar: " + avatar +
- " avatar_url: " + avatar_url +
- " getAvatarURL: " + getAvatarURL(72) +
+ ", bid: " + bid +
+ ", eid: " + eid +
+ ", type: " + type +
+ ", timestamp: " + timestamp +
+ ", from: " + from +
+ ", hostmask: " + hostmask +
+ ", msg: " + msg +
+ ", html: " + html +
+ ", formatted: " + formatted +
+ ", group_eid: " + group_eid +
+ ", group_msg: " + group_msg +
+ ", pending: " + pending +
+ ", self: " + self +
+ ", header: " + header +
+ ", avatar: " + avatar +
+ ", avatar_url: " + avatar_url +
+ ", getAvatarURL: " + getAvatarURL(72) +
"}";
}
diff --git a/src/com/irccloud/android/fragment/MessageViewFragment.java b/src/com/irccloud/android/fragment/MessageViewFragment.java
index 97a236d4a..347d75400 100644
--- a/src/com/irccloud/android/fragment/MessageViewFragment.java
+++ b/src/com/irccloud/android/fragment/MessageViewFragment.java
@@ -453,10 +453,8 @@ public synchronized void addItem(long eid, Event e) {
if (e.group_msg != null && e.html == null)
e.html = e.group_msg;
- /*if(e.html != null) {
- e.html = ColorFormatter.irc_to_html(e.html);
- e.formatted = ColorFormatter.html_to_spanned(e.html, e.linkify, server);
- }*/
+ e.ready_for_display = true;
+ format(e);
if (e.day < 1) {
e.day = calendar.get(Calendar.DAY_OF_YEAR);
@@ -592,6 +590,8 @@ public void insertAbove(long eid, Event e) {
}
for (int i = 0; i < data.size(); i++) {
if(data.get(i).eid == eid) {
+ e.ready_for_display = true;
+ format(e);
data.add(i, e);
break;
}
@@ -607,12 +607,16 @@ public void insertBelow(long eid, Event e) {
e.day = calendar.get(Calendar.DAY_OF_YEAR);
}
if(data.size() == 0 || data.get(data.size() - 1).eid == eid) {
+ e.ready_for_display = true;
+ format(e);
data.add(e);
return;
}
for (int i = 0; i < data.size(); i++) {
if(data.get(i).eid == eid) {
+ e.ready_for_display = true;
+ format(e);
data.add(i+1, e);
break;
}
@@ -2458,6 +2462,8 @@ private synchronized void insertEntity(final MessageAdapter adapter, Event paren
}
if(e.msg != null)
e.html = e.msg = TextUtils.htmlEncode(e.msg);
+ e.ready_for_display = true;
+ adapter.format(e);
adapter.insertBelow(parent.eid, e);
if(!backlog) {
runOnUiThread(new Runnable() {