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.
This commit is contained in:
dadaloop82
2026-04-16 18:46:27 +00:00
parent 45040f250c
commit c45b8ddbb9
@@ -279,7 +279,7 @@ class KioskActivity : AppCompatActivity() {
private fun launchGatewayInBackground() { private fun launchGatewayInBackground() {
if (!isGatewayInstalled()) return if (!isGatewayInstalled()) return
val launchIntent = packageManager.getLaunchIntentForPackage(GATEWAY_PACKAGE) ?: 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) startActivity(launchIntent)
// Bring kiosk back to foreground after gateway launches // Bring kiosk back to foreground after gateway launches
Handler(Looper.getMainLooper()).postDelayed({ Handler(Looper.getMainLooper()).postDelayed({