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

Commit 3ff65c34 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Do not make files in zip disabled in ACTION_VIEW.

Intent.ACTION_VIEW is only used for browsing ZIP files from Downloads.
FragmentTuner should ignore the MIME type from the MIME type filter.

This CL removes the MIME type filtering logic from FilesTuner, as
I believe FilesActivity is never used for picking items, so there should
be no need to mark any files as disabled.

Bug: 28267117
Change-Id: Iba92f82aca60154674a4bea3265b0f1a3ae296dc
parent 6f4047fe
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -70,13 +70,9 @@ public abstract class FragmentTuner {
    }

    public boolean isDocumentEnabled(String docMimeType, int docFlags) {
        if (isDirectory(docMimeType)) {
        return true;
    }

        return MimePredicate.mimeMatches(mState.acceptMimes, docMimeType);
    }

    abstract void onModelLoaded(Model model, @ResultType int resultType, boolean isSearch);

    /**