diff options
author | Brian Attwell <brianattwell@google.com> | 2015-02-25 22:31:22 -0800 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2015-02-26 11:30:02 -0800 |
commit | 74eb4ecc5df272f681b427760d46deafce8ed0b2 (patch) | |
tree | b282b7c40afd06fe35922b9dd860a95de327533e /src/com/android/dialer/list/AllContactsFragment.java | |
parent | 2099148622c63b51b4b63273546ddd6a9db8b9a2 (diff) |
QuickContacts can prioritize phone mimetype. Part2
Whenever using QuickContacts in Dialer, make sure to
prioritize the phone mimetype.
Bug: 18391003
Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
Diffstat (limited to 'src/com/android/dialer/list/AllContactsFragment.java')
-rw-r--r-- | src/com/android/dialer/list/AllContactsFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/AllContactsFragment.java b/src/com/android/dialer/list/AllContactsFragment.java index deabb80b9..94efc4869 100644 --- a/src/com/android/dialer/list/AllContactsFragment.java +++ b/src/com/android/dialer/list/AllContactsFragment.java @@ -18,6 +18,7 @@ package com.android.dialer.list; import android.database.Cursor; import android.net.Uri; +import android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.QuickContact; import android.view.LayoutInflater; import android.view.View; @@ -83,7 +84,8 @@ public class AllContactsFragment extends ContactEntryListFragment<ContactEntryLi public void onItemClick(AdapterView<?> parent, View view, int position, long id) { final Uri uri = (Uri) view.getTag(); if (uri != null) { - QuickContact.showQuickContact(getActivity(), view, uri, QuickContact.MODE_LARGE, null); + QuickContact.showQuickContact(getContext(), view, uri, null, + Phone.CONTENT_ITEM_TYPE); } } |