Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2b2f702 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Using new contacts API when creating a new live folder.

Change-Id: I84e7efd3f6a67502defd6279588e262e56bfa42f
parent 4e3a0432
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -16,13 +16,13 @@

package com.android.contacts;

import android.content.Intent;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.app.Activity;
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 @@ public class ContactsLiveFolders {
        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));