New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): Resuming with intent "FLAG_ACTIVITY_MULTIPLE_TASK" can hang the app #11080
Conversation
…hang the app - Modified to effectively restart the app when the following intent flags are set: * FLAG_ACTIVITY_MULTIPLE_TASK * FLAG_ACTIVITY_NEW_DOCUMENT - Modified resume code to use main/launch intent flags. * We don't want flags such as FLAG_ACTIVITY_CLEAR_TOP to destroy child activities when resuming app.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
FR Passed. NO hanging when resuming app app with an intent having FLAG_ACTIVITY_MULTIPLE_TASK. Works as Expected. Waiting for the 8.1.0 GA release to merge this PR Test Environment: |
JIRA:
https://jira.appcelerator.org/browse/TIMOB-27271
Summary:
FLAG_ACTIVITY_MULTIPLE_TASK
FLAG_ACTIVITY_NEW_DOCUMENT
FLAG_ACTIVITY_CLEAR_TOP
or other destructive flags because they will destroy existing app's child activities.Test:
<name/>
in "tiapp.xml".)<id/>
in "tiapp.xml".)~/Library/Android/sdk/platform-tools
./adb shell am start -n com.appc.intent.test/.IntenttestActivity -a android.intent.action.VIEW -d https://www.appcelerator.com -f 0x08000000
./adb shell am start -n com.appc.intent.test/.IntenttestActivity -a android.intent.action.VIEW -d https://www.google.com
./adb shell am start -n com.appc.intent.test/.IntenttestActivity -a android.intent.action.VIEW -d https://www.axway.com