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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user