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
This commit is contained in:
Tomasz Mikolajewski
2016-04-20 16:50:25 +09:00
parent 0fb51357af
commit 1037af38a4

View File

@@ -70,11 +70,7 @@ public abstract class FragmentTuner {
}
public boolean isDocumentEnabled(String docMimeType, int docFlags) {
if (isDirectory(docMimeType)) {
return true;
}
return MimePredicate.mimeMatches(mState.acceptMimes, docMimeType);
return true;
}
abstract void onModelLoaded(Model model, @ResultType int resultType, boolean isSearch);