[
https://issues.apache.org/jira/browse/CB-8146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241967#comment-14241967
]
ASF GitHub Bot commented on CB-8146:
------------------------------------
Github user agrieve commented on the pull request:
https://github.com/apache/cordova-android/pull/128#issuecomment-66555726
Created issue for this: https://issues.apache.org/jira/browse/CB-8146.
Nice job tracking this down! I'd go even one step further to what Joe said
and claim that `activityState` isn't necessary at all. I'd guess whoever put it
in there originally just didn't know about the `isFinishing()` getter :S.
Going to merge in your change so that you get some credit for tracking it
down, then will refactor to just delete `activityState`.
> Javascript not loading when activity restarted after exiting with Back button
> -----------------------------------------------------------------------------
>
> Key: CB-8146
> URL: https://issues.apache.org/jira/browse/CB-8146
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
>
> Reported in PR: https://github.com/apache/cordova-android/pull/128
> {quote}
> I was having some issues with my app (local javascript SPA):
> Start app. Everything works normally.
> Press Back button to exit. Activity exits and is destroyed.
> Start app again. Now the HTML shows up, but the Javascript never runs, so
> nothing works.
> Press Home button, activity goes to background (with non-working Javascript).
> Start app again. Now Javascript loads and resumes properly. Everything starts
> working.
> This is on KitKat 4.4.4 on a Nexus 5. "KeepRunning" = "false" in the config
> file.
> Pretty simple fix, once I could figure it out. Please let me know if this has
> other consequences; sorry I can't provide a test case; my app is quite huge.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]