mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
Got up and down mixed
This commit is contained in:
parent
f394f7457b
commit
ccf0c5db67
@ -754,10 +754,10 @@ public class CordovaWebView extends WebView {
|
|||||||
public void bindButton(String button, boolean override) {
|
public void bindButton(String button, boolean override) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
if (button.compareTo("volumeup")==0) {
|
if (button.compareTo("volumeup")==0) {
|
||||||
keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_DOWN);
|
keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_UP);
|
||||||
}
|
}
|
||||||
else if (button.compareTo("volumedown")==0) {
|
else if (button.compareTo("volumedown")==0) {
|
||||||
keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_UP);
|
keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_DOWN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user