From c45b8ddbb96b72d5793d1d854fed36049523344b Mon Sep 17 00:00:00 2001 From: dadaloop82 Date: Thu, 16 Apr 2026 18:46:27 +0000 Subject: [PATCH] fix(kiosk): remove FLAG_ACTIVITY_LAUNCH_ADJACENT causing split-screen Was triggering multi-window split mode instead of launching gateway behind the kiosk. Now uses only FLAG_ACTIVITY_NEW_TASK. --- .../main/kotlin/it/dadaloop/evershelf/kiosk/KioskActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4471632..8a1411e 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 @@ -279,7 +279,7 @@ class KioskActivity : AppCompatActivity() { private fun launchGatewayInBackground() { if (!isGatewayInstalled()) return val launchIntent = packageManager.getLaunchIntentForPackage(GATEWAY_PACKAGE) ?: return - launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT) + launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) startActivity(launchIntent) // Bring kiosk back to foreground after gateway launches Handler(Looper.getMainLooper()).postDelayed({