[TIMOB-25886] Android: Improve Ti.App._restart() performance
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2018-05-24T15:30:24.000+0000 |
Affected Version/s | Release 7.1.0 |
Fix Version/s | Release 7.3.0 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2018-03-19T22:05:34.000+0000 |
Updated | 2018-10-08T14:10:06.000+0000 |
Description
Currently, we use an Intent to re-launch our Titanium application when
Ti.App._restart()
is invoked. This isn't the best solution as it results in re-launching the application.
Instead, we can terminate all existing acivities and restart the KrollRuntime to reset the Javascript context to a clean state.
master: https://github.com/appcelerator/titanium_mobile/pull/9946