incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Got up and down mixed
Date Wed, 20 Jun 2012 19:07:35 GMT
Updated Branches:
  refs/heads/buttons f394f7457 -> ccf0c5db6


Got up and down mixed


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/ccf0c5db
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/ccf0c5db
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/ccf0c5db

Branch: refs/heads/buttons
Commit: ccf0c5db674d09cf0538843f4823164a88e02415
Parents: f394f74
Author: Joe Bowser <bowserj@apache.org>
Authored: Wed Jun 20 12:07:04 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Wed Jun 20 12:07:04 2012 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaWebView.java     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ccf0c5db/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 17b92fc..f5dec85 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -754,10 +754,10 @@ public class CordovaWebView extends WebView {
     public void bindButton(String button, boolean override) {
         // TODO Auto-generated method stub
         if (button.compareTo("volumeup")==0) {
-          keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_DOWN);
+          keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_UP);
         }
         else if (button.compareTo("volumedown")==0) {
-          keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_UP);
+          keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_DOWN);
         }
       }
     


Mime
View raw message