Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e7f9e52 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Inline calls to MimeUtils."

parents 509ed995 aa94cf91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ import com.android.documentsui.base.DocumentInfo;
import com.android.documentsui.base.Features;
import com.android.documentsui.roots.RootCursorWrapper;

import libcore.net.MimeUtils;
import libcore.net.MimeMap;

import java.util.Random;

@@ -130,7 +130,7 @@ public class TestModel extends Model {

        while(i != -1) {
            name = name.substring(i + 1);
            String type = MimeUtils.guessMimeTypeFromExtension(name);
            String type = MimeMap.getDefault().guessMimeTypeFromExtension(name);
            if (type != null) {
                return type;
            }