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 {
|
} else {
|
||||||
final String contentType = mData.getContentType();
|
final String contentType = mData.getContentType();
|
||||||
if (ContentType.isAudioType(contentType)) {
|
if (ContentType.isAudioType(contentType)) {
|
||||||
final Context context = getContext();
|
|
||||||
setBackgroundColor(
|
setBackgroundColor(
|
||||||
getResources().getColor(R.color.gallery_image_default_background));
|
getResources().getColor(R.color.gallery_image_default_background));
|
||||||
mIcon.setImageDrawable(
|
mIcon.setImageResource(R.drawable.ic_music);
|
||||||
context.getContentResolver()
|
|
||||||
.getTypeInfo(contentType)
|
|
||||||
.getIcon()
|
|
||||||
.loadDrawable(context));
|
|
||||||
mIcon.setColorFilter(
|
mIcon.setColorFilter(
|
||||||
ConversationDrawables.get().getConversationThemeColor(),
|
ConversationDrawables.get().getConversationThemeColor(),
|
||||||
PorterDuff.Mode.SRC_IN);
|
PorterDuff.Mode.SRC_IN);
|
||||||
|
|||||||