[Replicant] [PATCH 3/9] Revert "Update LookupProvider API calls"

belgin belginstirbu at hotmail.com
Mon Nov 23 23:47:02 UTC 2020


This reverts commit 1a2c47bc6e3b5512544acf8146b76d6a9847195d.
---
 .../cyanogenmod/messaging/lookup/LookupProviderManager.java | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/com/cyanogenmod/messaging/lookup/LookupProviderManager.java b/src/com/cyanogenmod/messaging/lookup/LookupProviderManager.java
index 4671eef..63e2689 100644
--- a/src/com/cyanogenmod/messaging/lookup/LookupProviderManager.java
+++ b/src/com/cyanogenmod/messaging/lookup/LookupProviderManager.java
@@ -30,7 +30,6 @@ import android.telephony.PhoneNumberUtils;
 import android.text.TextUtils;
 import android.util.Log;
 
-import com.cyanogen.lookup.phonenumber.contract.LookupProvider;
 import com.cyanogen.lookup.phonenumber.provider.LookupProviderImpl;
 import com.cyanogen.lookup.phonenumber.response.StatusCode;
 import com.cyanogen.lookup.phonenumber.util.LookupHandlerThread;
@@ -110,15 +109,11 @@ public class LookupProviderManager extends BroadcastReceiver implements Applicat
     private boolean start() {
         log("start()");
         if (mLookupHandlerThread == null) {
-            LookupProvider lookupProvider = LookupProviderImpl.INSTANCE.get(mApplication);
-            if (lookupProvider.isEnabled()) {
-                mLookupHandlerThread = new LookupHandlerThread(THREAD_NAME, mApplication,
-                        lookupProvider);
-                mLookupHandlerThread.initialize();
-
-            }
+            mLookupHandlerThread = new LookupHandlerThread(THREAD_NAME, mApplication,
+                    new LookupProviderImpl(mApplication));
+            mLookupHandlerThread.initialize();
         }
-        return mLookupHandlerThread != null;
+        return mLookupHandlerThread.isAlive();
     }
 
     private void stop() {
-- 
2.11.0



More information about the Replicant mailing list