appcelerator/titanium_mobile — pull request #2290 by ayeung (2012-05-29 22:58:32+00:00)
Title: TIMOB-9062: Clean-up other activities in the activity stack when the roo...

...t activity is finishing.

https://jira.appcelerator.org/browse/TIMOB-9062

This PR essentially corrects the "exitOnClose" behavior. Before, we were not cleaning up activities from the activity stack when the root activity has been destroyed. As a result, the app is still able to run afterwards. With this change, exitOnClose should also kill all other activities in the activity stack, which forces the app to close.

This should also fix https://jira.appcelerator.org/browse/TIMOB-9140 since the app exits immediately.