mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Caught error with the back button again. backHistory actually goes back in history, used canGoBack() instead
This commit is contained in:
parent
9ef487a7a5
commit
a29b8e5b36
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user