From bf693627090ee136556a4e82ed7cb0a584ff278e Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 28 Feb 2012 11:59:51 -0800 Subject: [PATCH] Fix to CordovaInterface methods, DroidGap has the managedQuery since it inherits from Activity. (CB-282) --- framework/src/org/apache/cordova/DroidGap.java | 7 ++----- framework/src/org/apache/cordova/api/CordovaInterface.java | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index d0c039a8..c5e795e3 100755 --- a/framework/src/org/apache/cordova/DroidGap.java +++ b/framework/src/org/apache/cordova/DroidGap.java @@ -1404,11 +1404,6 @@ public class DroidGap extends Activity implements CordovaInterface { return this; } - public Cursor managedQuery(Uri parse, String[] strings, Object object, - Object object2, Object object3) { - return this.managedQuery(parse, strings, object, object2, object3); - } - public void bindBackButton(boolean override) { // TODO Auto-generated method stub @@ -1418,4 +1413,6 @@ public class DroidGap extends Activity implements CordovaInterface { // TODO Auto-generated method stub return false; } + + } diff --git a/framework/src/org/apache/cordova/api/CordovaInterface.java b/framework/src/org/apache/cordova/api/CordovaInterface.java index 0cf8bb2d..51d0392b 100755 --- a/framework/src/org/apache/cordova/api/CordovaInterface.java +++ b/framework/src/org/apache/cordova/api/CordovaInterface.java @@ -115,9 +115,9 @@ public interface CordovaInterface { public abstract void unregisterReceiver(BroadcastReceiver receiver); - public abstract Cursor managedQuery(Uri parse, String[] strings, - Object object, Object object2, Object object3); - + public abstract Cursor managedQuery(Uri uri, String[] projection, String selection, + String[] selectionArgs, String sortOrder); + public abstract void runOnUiThread(Runnable runnable); public abstract AssetManager getAssets();