summaryrefslogtreecommitdiffstats
path: root/info_lookup
diff options
context:
space:
mode:
authorRohit Yengisetty <rohit@cyngn.com>2016-03-16 11:54:41 -0700
committerRichard MacGregor <rmacgregor@cyngn.com>2016-03-25 11:42:18 -0700
commit37bf36a66a9eb5c529e63d4450214e175c50392b (patch)
tree374807879406d74edbc39c0ae621023905b75247 /info_lookup
parentd8f225d98260924fce2f69f47f8c7a1c0c781d68 (diff)
downloadpackages_apps_ContactsCommon-37bf36a66a9eb5c529e63d4450214e175c50392b.tar.gz
packages_apps_ContactsCommon-37bf36a66a9eb5c529e63d4450214e175c50392b.tar.bz2
packages_apps_ContactsCommon-37bf36a66a9eb5c529e63d4450214e175c50392b.zip
Extend LookupProvider api to add an unique identifer
Change-Id: Id41515ffca11b82aafa9ac3f50ac864ec409ad2b
Diffstat (limited to 'info_lookup')
-rw-r--r--info_lookup/src/com/cyanogen/lookup/phonenumber/provider/LookupProviderImpl.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/info_lookup/src/com/cyanogen/lookup/phonenumber/provider/LookupProviderImpl.java b/info_lookup/src/com/cyanogen/lookup/phonenumber/provider/LookupProviderImpl.java
index 7c8d9d21..1ba916b3 100644
--- a/info_lookup/src/com/cyanogen/lookup/phonenumber/provider/LookupProviderImpl.java
+++ b/info_lookup/src/com/cyanogen/lookup/phonenumber/provider/LookupProviderImpl.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2016 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package com.cyanogen.lookup.phonenumber.provider;
import android.content.Context;
@@ -211,4 +227,12 @@ public class LookupProviderImpl implements LookupProvider {
return provider;
}
+ @Override
+ public String getUniqueIdentifier() {
+ if (mProviderInfo != null) {
+ return mProviderInfo.getPackageName();
+ }
+ return null;
+ }
+
}