Caught error with the back button again. backHistory actually goes back in history, used canGoBack() instead

This commit is contained in:
Joe Bowser 2012-07-30 13:55:22 -07:00
parent 9ef487a7a5
commit a29b8e5b36

View File

@ -1042,7 +1042,7 @@ public class DroidGap extends Activity implements CordovaInterface {
@Override
public boolean onKeyUp(int keyCode, KeyEvent event)
{
if (appView.backHistory() || keyCode != KeyEvent.KEYCODE_BACK)
if (appView.canGoBack() || keyCode != KeyEvent.KEYCODE_BACK)
return appView.onKeyUp(keyCode, event);
else
return super.onKeyUp(keyCode, event);