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

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

Merge "Inline calls to MimeUtils." into qt-dev-plus-aosp

parents bc5312f8 caf0449b
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;
            }