Permalink
Browse files

Removed some legacy button code that existed in droidgap + app plugins

  • Loading branch information...
1 parent 576f8cb commit fba87de064446a613c0a7475e0088c51514498a4 @filmaj filmaj committed Jun 22, 2012
Showing with 0 additions and 45 deletions.
  1. +0 −12 framework/src/org/apache/cordova/App.java
  2. +0 −33 framework/src/org/apache/cordova/DroidGap.java
@@ -73,10 +73,6 @@ else if (action.equals("overrideButton")) {
else if (action.equals("overrideBackbutton")) {
this.overrideBackbutton(args.getBoolean(0));
}
- else if (action.equals("isBackbuttonOverridden")) {
- boolean b = this.isBackbuttonOverridden();
- return new PluginResult(status, b);
- }
else if (action.equals("exitApp")) {
this.exitApp();
}
@@ -202,14 +198,6 @@ public void overrideButton(String button, boolean override) {
LOG.i("DroidGap", "WARNING: Volume Button Default Behaviour will be overridden. The volume event will be fired!");
webView.bindButton(button, override);
}
- /**
- * Return whether the Android back button is overridden by the user.
- *
- * @return boolean
- */
- public boolean isBackbuttonOverridden() {
- return this.cordova.isBackButtonBound();
- }
/**
* Exit the Android application.
@@ -138,7 +138,6 @@ Licensed to the Apache Software Foundation (ASF) under one
protected CordovaWebViewClient webViewClient;
protected LinearLayout root;
- public boolean bound = false;
protected boolean cancelLoadUrl = false;
protected ProgressDialog spinnerDialog = null;
@@ -181,10 +180,6 @@ Licensed to the Apache Software Foundation (ASF) under one
// when another application (activity) is started.
protected boolean keepRunning = true;
- private boolean volumeupBound;
-
- private boolean volumedownBound;
-
/**
* Sets the authentication token.
*
@@ -948,24 +943,6 @@ public Context getContext() {
return this.getContext();
}
- /**
- * Override the backbutton.
- *
- * @param override
- */
- public void bindBackButton(boolean override) {
- this.bound = override;
- }
-
- /**
- * Determine of backbutton is overridden.
- *
- * @return
- */
- public boolean isBackButtonBound() {
- return this.bound;
- }
-
/**
* Load the specified URL in the Cordova webview or a new browser instance.
*
@@ -982,16 +959,6 @@ public void showWebPage(String url, boolean openExternal, boolean clearHistory,
}
}
- public void bindButton(String button, boolean override) {
- // TODO Auto-generated method stub
- if (button.compareTo("volumeup")==0) {
- this.volumeupBound = override;
- }
- else if (button.compareTo("volumedown")==0) {
- this.volumedownBound = override;
- }
- }
-
protected Dialog splashDialog;
/**

0 comments on commit fba87de

Please sign in to comment.