Merge "Fix NoSuchMethodError for getTypeInfo()"
BIN
res/drawable-hdpi/ic_music.png
Normal file
|
After Width: | Height: | Size: 326 B |
|
Before Width: | Height: | Size: 994 B After Width: | Height: | Size: 468 B |
BIN
res/drawable-mdpi/ic_music.png
Normal file
|
After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 772 B After Width: | Height: | Size: 339 B |
BIN
res/drawable-xhdpi/ic_music.png
Normal file
|
After Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 579 B |
BIN
res/drawable-xxhdpi/ic_music.png
Normal file
|
After Width: | Height: | Size: 634 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 816 B |
BIN
res/drawable-xxxhdpi/ic_music.png
Normal file
|
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);
|
||||
|
||||