incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [2/10] android commit: Adding logs
Date Mon, 11 Jun 2012 17:29:05 GMT
Adding logs


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

Branch: refs/heads/master
Commit: 34ebdaddc1dde27095c2bc1bbea1087038243d05
Parents: 9f42772
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Jun 8 17:17:11 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Jun 8 17:17:11 2012 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/App.java      |    3 +++
 framework/src/org/apache/cordova/DroidGap.java |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/34ebdadd/framework/src/org/apache/cordova/App.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/App.java b/framework/src/org/apache/cordova/App.java
index 293cd13..ed9ec77 100755
--- a/framework/src/org/apache/cordova/App.java
+++ b/framework/src/org/apache/cordova/App.java
@@ -67,6 +67,9 @@ public class App extends Plugin {
             else if (action.equals("backHistory")) {
                 this.backHistory();
             }
+            else if (action.equals("overrideButton")) {
+                this.overrideButton(args.getString(0), args.getBoolean(1));
+            }
             else if (action.equals("overrideBackbutton")) {
                 this.overrideBackbutton(args.getBoolean(0));
             }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/34ebdadd/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 18032f8..cd667bf 100755
--- a/framework/src/org/apache/cordova/DroidGap.java
+++ b/framework/src/org/apache/cordova/DroidGap.java
@@ -836,6 +836,7 @@ public class DroidGap extends Activity implements CordovaInterface {
         if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
             if (this.volumedownBound==true) {
                 // only override default behaviour is event bound
+                LOG.d(TAG, "Down Key Hit");
                 this.appView.loadUrl("javascript:cordova.fireDocumentEvent('volumedownbutton');");
                 return true;
             }
@@ -845,6 +846,7 @@ public class DroidGap extends Activity implements CordovaInterface {
         else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
             if (this.volumeupBound==true) {
                 // only override default behaviour is event bound
+                LOG.d(TAG, "Up Key Hit");
                 this.appView.loadUrl("javascript:cordova.fireDocumentEvent('volumeupbutton');");
                 return true;
             }


Mime
View raw message