From 34ebdaddc1dde27095c2bc1bbea1087038243d05 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Fri, 8 Jun 2012 17:17:11 -0700 Subject: [PATCH] Adding logs --- framework/src/org/apache/cordova/App.java | 3 +++ framework/src/org/apache/cordova/DroidGap.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/framework/src/org/apache/cordova/App.java b/framework/src/org/apache/cordova/App.java index 293cd134..ed9ec779 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)); } diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index 18032f88..cd667bf4 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; }