Using new contacts API when creating a new live folder.
Change-Id: I84e7efd3f6a67502defd6279588e262e56bfa42f
diff --git a/src/com/android/contacts/ContactsLiveFolders.java b/src/com/android/contacts/ContactsLiveFolders.java
index d437e80..64be0e2 100644
--- a/src/com/android/contacts/ContactsLiveFolders.java
+++ b/src/com/android/contacts/ContactsLiveFolders.java
@@ -16,13 +16,13 @@
package com.android.contacts;
-import android.content.Intent;
-import android.content.Context;
-import android.net.Uri;
import android.app.Activity;
+import android.content.Context;
+import android.content.Intent;
+import android.net.Uri;
import android.os.Bundle;
+import android.provider.ContactsContract.Contacts;
import android.provider.LiveFolders;
-import android.provider.Contacts;
public class ContactsLiveFolders {
public static class StarredContacts extends Activity {
@@ -100,8 +100,8 @@
final Intent intent = new Intent();
intent.setData(uri);
- intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_BASE_INTENT, new Intent(Intent.ACTION_VIEW,
- Contacts.People.CONTENT_URI));
+ intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_BASE_INTENT,
+ new Intent(Intent.ACTION_VIEW, Contacts.CONTENT_URI));
intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_NAME, name);
intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_ICON,
Intent.ShortcutIconResource.fromContext(context, icon));