From 929aeea5127e69462cde5bf3ce4383594838d3a3 Mon Sep 17 00:00:00 2001 From: Michael Gangolf Date: Wed, 4 Dec 2024 12:48:42 +0100 Subject: [PATCH] fix(android): set default exitOnClose property to true (#14150) --- .../java/org/appcelerator/titanium/proxy/TiWindowProxy.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/titanium/src/java/org/appcelerator/titanium/proxy/TiWindowProxy.java b/android/titanium/src/java/org/appcelerator/titanium/proxy/TiWindowProxy.java index 237924bbb95..662f840c62c 100644 --- a/android/titanium/src/java/org/appcelerator/titanium/proxy/TiWindowProxy.java +++ b/android/titanium/src/java/org/appcelerator/titanium/proxy/TiWindowProxy.java @@ -568,6 +568,9 @@ protected void fillIntent(Activity activity, Intent intent) // We're opening child activity from Titanium root activity. Have it exit out of app by default. // Note: If launched via startActivityForResult(), then root activity won't be the task's root. intent.putExtra(TiC.INTENT_PROPERTY_FINISH_ROOT, true); + + // Set default value on first window proxy also if not already set above. + setProperty(TiC.PROPERTY_EXIT_ON_CLOSE, true); } // Set the theme property