You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by wangsongyan <gi...@git.apache.org> on 2015/12/07 08:57:27 UTC
[GitHub] cordova-android pull request: Update CordovaWebViewImpl.java
GitHub user wangsongyan opened a pull request:
https://github.com/apache/cordova-android/pull/242
Update CordovaWebViewImpl.java
use resetCoreAndroidPlugin method to set variable null when opening other url.
when I use cordova-android framework in my project,it is troubling me that the backbutton event doesn't work if I trriger the backbutton on other url.
ps:I import the cordova.js into my html page more than once.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangsongyan/cordova-android master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/242.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #242
----
commit 89c36da82cd508c2311b76bc25ef73ee8f1aed11
Author: wangsongyan <wa...@users.noreply.github.com>
Date: 2015-12-07T07:37:11Z
Update CordovaWebViewImpl.java
use resetCoreAndroidPlugin method to set variable null when open other url
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org
[GitHub] cordova-android pull request: Update CordovaWebViewImpl.java
Posted by infil00p <gi...@git.apache.org>.
Github user infil00p commented on the pull request:
https://github.com/apache/cordova-android/pull/242#issuecomment-168799272
The only way the back button breaks is if you override the behaviour on the document, and it is the developer's responsibility to manage that, not the framework. For that reason, we're going to not accept this one, since you shouldn't have to change the CordovaWebView's implementation to fix the issue that you are having.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org
[GitHub] cordova-android pull request #242: Update CordovaWebViewImpl.java
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/cordova-android/pull/242
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org
[GitHub] cordova-android pull request: Update CordovaWebViewImpl.java
Posted by wangsongyan <gi...@git.apache.org>.
Github user wangsongyan commented on the pull request:
https://github.com/apache/cordova-android/pull/242#issuecomment-168876251
I found that all plugins including CoreAndroid will be initialized when jumping to other page,but the variable appPlugin of CordovaWebViewImpl cannot be changed if appPlugin is not a null variable.Not only the back button but also the volumeKeyDown and the volumeKeyUp cannot work.
Is it the only way to solve my problem that using the cordova.js only once?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org