diff options
author | Yorke Lee <yorkelee@google.com> | 2014-10-20 17:16:59 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-20 17:16:59 +0000 |
commit | 8392858c5f1fb2dc0a84863d0a0a10f2f4fcd3f7 (patch) | |
tree | c5b7ac4a6ce749cf9ccb5b024f949eac9cdc107d /InCallUI | |
parent | 82754dcd3751af40ed4c4c8f2c08f7a6a11be418 (diff) | |
parent | 43f19ec350f1fbde783ba4e34edc3624993d7061 (diff) |
am caf41cf9: Merge "Send rounded contact photos to NotificationManager" into lmp-mr1-dev
* commit 'caf41cf97e9130a3bfd4b5768cbfb9ae4e61c092':
Send rounded contact photos to NotificationManager
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index d60cd5f85..0c48c1939 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -17,6 +17,7 @@ package com.android.incallui; import android.net.Uri; + import com.google.common.base.Preconditions; import android.app.Notification; @@ -32,6 +33,7 @@ import android.os.Message; import android.telecom.PhoneAccount; import android.text.TextUtils; +import com.android.contacts.common.util.BitmapUtil; import com.android.incallui.ContactInfoCache.ContactCacheEntry; import com.android.incallui.ContactInfoCache.ContactInfoCacheCallback; import com.android.incallui.InCallApp.NotificationBroadcastReceiver; @@ -419,9 +421,8 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener { android.R.dimen.notification_large_icon_height); final int width = (int) mContext.getResources().getDimension( android.R.dimen.notification_large_icon_width); - largeIcon = Bitmap.createScaledBitmap(largeIcon, width, height, false); + largeIcon = BitmapUtil.getRoundedBitmap(largeIcon, width, height); } - return largeIcon; } |