Merge "Fix NoSuchMethodError for getTypeInfo()" am: 919cb6afdd am: d67e1db151 am: 55aa308fcb am: c2c670d15a am: 72c3eae5c8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1352082 Change-Id: Idfedc335e98a4b75a1763301ab833748b0d9e3c7
|
After Width: | Height: | Size: 326 B |
|
Before Width: | Height: | Size: 994 B After Width: | Height: | Size: 468 B |
|
After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 772 B After Width: | Height: | Size: 339 B |
|
After Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 634 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 816 B |
|
After Width: | Height: | Size: 759 B |
|
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 1.0 KiB |
@@ -161,14 +161,9 @@ public class GalleryGridItemView extends FrameLayout {
|
||||
} else {
|
||||
final String contentType = mData.getContentType();
|
||||
if (ContentType.isAudioType(contentType)) {
|
||||
final Context context = getContext();
|
||||
setBackgroundColor(
|
||||
getResources().getColor(R.color.gallery_image_default_background));
|
||||
mIcon.setImageDrawable(
|
||||
context.getContentResolver()
|
||||
.getTypeInfo(contentType)
|
||||
.getIcon()
|
||||
.loadDrawable(context));
|
||||
mIcon.setImageResource(R.drawable.ic_music);
|
||||
mIcon.setColorFilter(
|
||||
ConversationDrawables.get().getConversationThemeColor(),
|
||||
PorterDuff.Mode.SRC_IN);
|
||||
|
||||