summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRohit Yengisetty <rohit@cyngn.com>2016-02-24 14:59:18 -0800
committerRohit Yengisetty <rohit@cyngn.com>2016-02-24 15:07:25 -0800
commit38d016c81fcb94fbc523490e736d7de032c09bca (patch)
tree5a86034a651e45213f14a9063b58bbadd213edbf /src
parentb35ec756bdf1e4fb8944b6255e928d2931d6b25f (diff)
downloadandroid_packages_apps_ContactsCommon-38d016c81fcb94fbc523490e736d7de032c09bca.tar.gz
android_packages_apps_ContactsCommon-38d016c81fcb94fbc523490e736d7de032c09bca.tar.bz2
android_packages_apps_ContactsCommon-38d016c81fcb94fbc523490e736d7de032c09bca.zip
Expose method to clean up resources in BlockContactHelper
Change-Id: If19475383e083d0f210ead4015c4a707d0780fba Issue-Id: CYNGNOS-2143
Diffstat (limited to 'src')
-rw-r--r--src/com/android/contacts/common/util/BlockContactHelper.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/util/BlockContactHelper.java b/src/com/android/contacts/common/util/BlockContactHelper.java
index 5d10b556..c68181e0 100644
--- a/src/com/android/contacts/common/util/BlockContactHelper.java
+++ b/src/com/android/contacts/common/util/BlockContactHelper.java
@@ -18,6 +18,9 @@ import java.util.List;
/**
* Helper class used to interface with the framework implementation of Blacklist and delegating
* the apropos information to the active phonenumber LookupProvider, if any.
+ *
+ * Ensure that {@link #destroy()} is called so that the necessary resource cleanup
+ * takes place
*/
public class BlockContactHelper {
private final Context mContext;
@@ -173,4 +176,11 @@ public class BlockContactHelper {
}.execute();
}
+ /**
+ * Clean-up any external resources that are used
+ */
+ public void destroy() {
+ mLookupProvider.disable();
+ }
+
}