diff options
author | Wenyi Wang <wenyiw@google.com> | 2015-11-24 15:31:41 -0800 |
---|---|---|
committer | Wenyi Wang <wenyiw@google.com> | 2015-11-30 09:55:21 -0800 |
commit | 8005ef13459021aaf1ef0f9ed545fb714df4bfc5 (patch) | |
tree | 322040137febfb84a1f679a99519cc6da5c36fda /src/com/android/dialer/CallDetailActivity.java | |
parent | a31f24c1ace1ed10b87daa8d23af58e6598fa075 (diff) |
Avoid using prioritized mimetype on pre-M SDKs
Restores code deleted in ag/643285 because the code was used on pre-M.
Bug:25629359
Change-Id: Ief60d301fd8d3c018ce03388c56264a2db727224
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index 34e49a99b..c045967a2 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -43,6 +43,7 @@ import com.android.contacts.common.ClipboardUtils; import com.android.contacts.common.ContactPhotoManager; import com.android.contacts.common.ContactPhotoManager.DefaultImageRequest; import com.android.contacts.common.GeoUtil; +import com.android.contacts.common.compat.CompatUtils; import com.android.contacts.common.interactions.TouchPointManager; import com.android.contacts.common.preference.ContactsPreferences; import com.android.contacts.common.testing.NeededForTesting; @@ -249,7 +250,9 @@ public class CallDetailActivity extends AppCompatActivity mQuickContactBadge = (QuickContactBadge) findViewById(R.id.quick_contact_photo); mQuickContactBadge.setOverlay(null); - mQuickContactBadge.setPrioritizedMimeType(Phone.CONTENT_ITEM_TYPE); + if (CompatUtils.hasPrioritizedMimeType()) { + mQuickContactBadge.setPrioritizedMimeType(Phone.CONTENT_ITEM_TYPE); + } mCallerName = (TextView) findViewById(R.id.caller_name); mCallerNumber = (TextView) findViewById(R.id.caller_number); mAccountLabel = (TextView) findViewById(R.id.phone_account_label); |