Adding logs

This commit is contained in:
Joe Bowser 2012-06-08 17:17:11 -07:00
parent 9f42772b7e
commit 34ebdaddc1
2 changed files with 5 additions and 0 deletions

View File

@ -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));
}

View File

@ -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;
}