Commit ac5c4dd2 authored by akwizgran's avatar akwizgran

Prepend existing messages rather than sorting.

parent ea43d75a
......@@ -98,8 +98,10 @@ class Logger implements FileLogger.LogLoadedCallback {
if (logLoaded) throw new IllegalStateException();
logLoaded = true;
if (!logCleared) {
List<String> messagesSinceLoadStarted = new ArrayList<>(messages);
messages.clear();
messages.addAll(messagesLoaded);
Collections.sort(messages);
messages.addAll(messagesSinceLoadStarted);
}
messagesSnapshot = new ArrayList<>(messages);
listenersSnapshot = new ArrayList<>(listeners);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment