cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject git commit: [CB-4950] Remove the dependence on concrete component android.webkit.WebView.
Date Tue, 01 Oct 2013 03:41:39 GMT
Updated Branches:
  refs/heads/dev 84df899b6 -> ce6aafafb


[CB-4950] Remove the dependence on concrete component android.webkit.WebView.

(cherry picked from commit c5a5680c834d2310ac67725489d628a7e2408404)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/ce6aafaf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/ce6aafaf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/ce6aafaf

Branch: refs/heads/dev
Commit: ce6aafafba362263f9f8911ecb205445c3e07b9d
Parents: 84df899
Author: Gao Chun <chun.gao@intel.com>
Authored: Mon Sep 9 10:36:14 2013 +0800
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Mon Sep 30 11:17:04 2013 -0400

----------------------------------------------------------------------
 src/android/ContactAccessor.java     | 2 --
 src/android/ContactAccessorSdk5.java | 4 +---
 src/android/ContactManager.java      | 2 +-
 3 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/ce6aafaf/src/android/ContactAccessor.java
----------------------------------------------------------------------
diff --git a/src/android/ContactAccessor.java b/src/android/ContactAccessor.java
index 8c5480b..bac243e 100644
--- a/src/android/ContactAccessor.java
+++ b/src/android/ContactAccessor.java
@@ -19,7 +19,6 @@ package org.apache.cordova.contacts;
 import java.util.HashMap;
 
 import android.util.Log;
-import android.webkit.WebView;
 
 import org.apache.cordova.CordovaInterface;
 import org.json.JSONArray;
@@ -37,7 +36,6 @@ public abstract class ContactAccessor {
 
     protected final String LOG_TAG = "ContactsAccessor";
     protected CordovaInterface mApp;
-    protected WebView mView;
 
     /**
      * Check to see if the data associated with the key is required to

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/ce6aafaf/src/android/ContactAccessorSdk5.java
----------------------------------------------------------------------
diff --git a/src/android/ContactAccessorSdk5.java b/src/android/ContactAccessorSdk5.java
index 3caa066..486424f 100644
--- a/src/android/ContactAccessorSdk5.java
+++ b/src/android/ContactAccessorSdk5.java
@@ -31,7 +31,6 @@ import android.net.Uri;
 import android.os.RemoteException;
 import android.provider.ContactsContract;
 import android.util.Log;
-import android.webkit.WebView;
 
 import org.apache.cordova.CordovaInterface;
 import org.json.JSONArray;
@@ -124,9 +123,8 @@ public class ContactAccessorSdk5 extends ContactAccessor {
     /**
      * Create an contact accessor.
      */
-    public ContactAccessorSdk5(WebView view, CordovaInterface context) {
+    public ContactAccessorSdk5(CordovaInterface context) {
         mApp = context;
-        mView = view;
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/ce6aafaf/src/android/ContactManager.java
----------------------------------------------------------------------
diff --git a/src/android/ContactManager.java b/src/android/ContactManager.java
old mode 100755
new mode 100644
index e491c55..a50d799
--- a/src/android/ContactManager.java
+++ b/src/android/ContactManager.java
@@ -68,7 +68,7 @@ public class ContactManager extends CordovaPlugin {
          * older phones.
          */
         if (this.contactAccessor == null) {
-            this.contactAccessor = new ContactAccessorSdk5(this.webView, this.cordova);
+            this.contactAccessor = new ContactAccessorSdk5(this.cordova);
         }
 
         if (action.equals("search")) {


Mime
View raw message