incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [9/10] android commit: prevent volumeup/down default behaviour
Date Mon, 11 Jun 2012 17:29:05 GMT
prevent volumeup/down default behaviour


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/8356ac67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/8356ac67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/8356ac67

Branch: refs/heads/master
Commit: 8356ac67e859b4677fa0e18fdd7b58aa24ac6756
Parents: b323f32
Author: Julien Bouquillon <julien@bouquillon.com>
Authored: Tue May 22 21:42:46 2012 +0200
Committer: Julien Bouquillon <julien@bouquillon.com>
Committed: Tue May 22 21:42:46 2012 +0200

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/8356ac67/framework/src/org/apache/cordova/DroidGap.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java
index a8b9df5..61689db 100755
--- a/framework/src/org/apache/cordova/DroidGap.java
+++ b/framework/src/org/apache/cordova/DroidGap.java
@@ -1090,13 +1090,13 @@ public class DroidGap extends Activity implements CordovaInterface
{
         // If volumedown key
         else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
             this.appView.loadUrl("javascript:cordova.fireDocumentEvent('volumedownbutton');");
-            return super.onKeyUp(keyCode, event);
+            return true;
         }
 
         // If volumeup key
         else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
             this.appView.loadUrl("javascript:cordova.fireDocumentEvent('volumeupbutton');");
-            return super.onKeyUp(keyCode, event);
+            return true;
         }
 
         return false;


Mime
View raw message