From 6008efcd95ec10870c325adce3fff0a85ecda238 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 6 May 2021 16:22:58 +0200 Subject: ui: remove hack for broken kotlin compiler Seems like things are finally fixed. Signed-off-by: Jason A. Donenfeld --- .../main/java/com/wireguard/android/activity/LogViewerActivity.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ui/src/main') diff --git a/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt b/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt index f928161e..e13184f9 100644 --- a/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt +++ b/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt @@ -202,11 +202,7 @@ class LogViewerActivity : AppCompatActivity() { it.scrollToPosition(logLines.size - 1) } } else { - /* TODO: I'd prefer for the next line to be: - * 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" } + logLines.lastOrNull()?.msg += "\n$line" if (haveScrolled) logAdapter.notifyDataSetChanged() } if (!haveScrolled) { -- cgit v1.2.3