This commit is contained in:
filmaj 2010-08-24 11:26:00 -07:00
commit 24869b637d

View File

@ -399,9 +399,12 @@ public class DroidGap extends Activity {
} }
else 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(); appView.goBack();
if(appView.getUrl().equals(testUrl)) }
else // if you can't go back, invoke behavior of super class
{ {
return super.onKeyDown(keyCode, event); return super.onKeyDown(keyCode, event);
} }