mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
CB-1289: The menubutton event fires twice
This commit is contained in:
parent
07439ff99c
commit
e07822350e
@ -1032,20 +1032,4 @@ public class DroidGap extends Activity implements CordovaInterface {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
* @see android.app.Activity#onKeyUp(int, android.view.KeyEvent)
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onKeyUp(int keyCode, KeyEvent event)
|
|
||||||
{
|
|
||||||
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