From 1037af38a422bf8a050dfddf9668bc582fb968a0 Mon Sep 17 00:00:00 2001 From: Tomasz Mikolajewski Date: Wed, 20 Apr 2016 16:50:25 +0900 Subject: [PATCH] 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 --- .../src/com/android/documentsui/dirlist/FragmentTuner.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/DocumentsUI/src/com/android/documentsui/dirlist/FragmentTuner.java b/packages/DocumentsUI/src/com/android/documentsui/dirlist/FragmentTuner.java index e3eae33ccc09e..b528a76535521 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/dirlist/FragmentTuner.java +++ b/packages/DocumentsUI/src/com/android/documentsui/dirlist/FragmentTuner.java @@ -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);