ui: remove hack for broken kotlin compiler

Seems like things are finally fixed.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-05-06 16:22:58 +02:00
parent d6a8e9d4dc
commit 6008efcd95

View File

@ -202,11 +202,7 @@ class LogViewerActivity : AppCompatActivity() {
it.scrollToPosition(logLines.size - 1) it.scrollToPosition(logLines.size - 1)
} }
} else { } else {
/* TODO: I'd prefer for the next line to be: logLines.lastOrNull()?.msg += "\n$line"
* logLines.lastOrNull()?.msg += "\n$line"
* However, as of writing, that causes the kotlin compiler to freak out and crash, spewing bytecode.
*/
logLines.lastOrNull()?.apply { msg += "\n$line" }
if (haveScrolled) logAdapter.notifyDataSetChanged() if (haveScrolled) logAdapter.notifyDataSetChanged()
} }
if (!haveScrolled) { if (!haveScrolled) {