Merge "Removing a mimeIcon specific for album folders from MediaProvider." into nyc-mr1-dev
This commit is contained in:
@@ -42,12 +42,6 @@ public class IconUtils {
|
|||||||
public static Drawable loadMimeIcon(
|
public static Drawable loadMimeIcon(
|
||||||
Context context, String mimeType, String authority, String docId, int mode) {
|
Context context, String mimeType, String authority, String docId, int mode) {
|
||||||
if (Document.MIME_TYPE_DIR.equals(mimeType)) {
|
if (Document.MIME_TYPE_DIR.equals(mimeType)) {
|
||||||
// TODO: eventually move these hacky assets into that package
|
|
||||||
if ("com.android.providers.media.documents".equals(authority)
|
|
||||||
&& docId.startsWith("album")) {
|
|
||||||
return context.getDrawable(R.drawable.ic_doc_album);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mode == State.MODE_GRID) {
|
if (mode == State.MODE_GRID) {
|
||||||
return context.getDrawable(R.drawable.ic_grid_folder);
|
return context.getDrawable(R.drawable.ic_grid_folder);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user