From 0dac10d05e336dfc0adcfe0a0317a8306ecde703 Mon Sep 17 00:00:00 2001 From: dadaloop82 Date: Sun, 3 May 2026 19:12:42 +0000 Subject: [PATCH] =?UTF-8?q?fix(kiosk):=20fix=20compile=20error=20=E2=80=94?= =?UTF-8?q?=20ErrorReporter.report()=20=E2=86=92=20reportMessage()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ErrorReporter.report() takes a Throwable as first argument. The three new calls added in fe633c9 incorrectly passed 'this' (Context) instead, causing compileDebugKotlin to fail. Replace with ErrorReporter.reportMessage(type, message) which is the correct overload for non-exception error events. --- .../kotlin/it/dadaloop/evershelf/kiosk/KioskActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evershelf-kiosk/app/src/main/kotlin/it/dadaloop/evershelf/kiosk/KioskActivity.kt b/evershelf-kiosk/app/src/main/kotlin/it/dadaloop/evershelf/kiosk/KioskActivity.kt index 65af656..935969a 100644 --- a/evershelf-kiosk/app/src/main/kotlin/it/dadaloop/evershelf/kiosk/KioskActivity.kt +++ b/evershelf-kiosk/app/src/main/kotlin/it/dadaloop/evershelf/kiosk/KioskActivity.kt @@ -1076,7 +1076,7 @@ class KioskActivity : AppCompatActivity() { progress = -2 ) runOnUiThread { activeInstallBtn?.text = getString(R.string.install_btn_retry) } - ErrorReporter.report(this@KioskActivity, "install_download_failed", + ErrorReporter.reportMessage("install_download_failed", "DownloadManager returned failure for URL: $apkUrl") } } @@ -1214,7 +1214,7 @@ class KioskActivity : AppCompatActivity() { progress = -2 ) runOnUiThread { activeInstallBtn?.text = getString(R.string.install_btn_retry) } - ErrorReporter.report(this@KioskActivity, "install_failure", + ErrorReporter.reportMessage("install_failure", "PackageInstaller status=$status msg=$msg pkg=$targetPkg") } } @@ -1250,7 +1250,7 @@ class KioskActivity : AppCompatActivity() { progress = -2 ) runOnUiThread { activeInstallBtn?.text = getString(R.string.install_btn_retry) } - ErrorReporter.report(this, "install_packager_exception", + ErrorReporter.reportMessage("install_packager_exception", "installWithPackageInstaller exception for $targetPkg: ${e.message}") } }