mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Merge branch 'master' of http://github.com/thedeftone/phonegap-android
This commit is contained in:
commit
24869b637d
@ -399,9 +399,12 @@ public class DroidGap extends Activity {
|
||||
}
|
||||
else
|
||||
{
|
||||
String testUrl = appView.getUrl();
|
||||
// only go back if the webview tells you that it is possible to go back
|
||||
if(appView.canGoBack())
|
||||
{
|
||||
appView.goBack();
|
||||
if(appView.getUrl().equals(testUrl))
|
||||
}
|
||||
else // if you can't go back, invoke behavior of super class
|
||||
{
|
||||
return super.onKeyDown(keyCode, event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user