mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +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
|
@Override
|
||||||
public boolean onKeyUp(int keyCode, KeyEvent event)
|
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);
|
return appView.onKeyUp(keyCode, event);
|
||||||
else
|
else
|
||||||
return super.onKeyUp(keyCode, event);
|
return super.onKeyUp(keyCode, event);
|
||||||
|
Loading…
Reference in New Issue
Block a user