Remove getFreeBytes() to fasten queryRoots call.

This change fastens the first call to DocumentsUI after reboot.

Bug: 155819706
Test: builds (fastens the first call to DocumentsUI by 600-800ms)
Change-Id: Id8396e36ed8aa1ded79d93a2f1ed140bf903184b
This commit is contained in:
Abhijeet Kaur
2020-06-09 16:20:11 +01:00
parent 853191032f
commit ad9cbfbc80

View File

@@ -95,7 +95,8 @@ public class ExternalStorageProvider extends FileSystemProvider {
public String docId;
public File visiblePath;
public File path;
public boolean reportAvailableBytes = true;
// TODO (b/157033915): Make getFreeBytes() faster
public boolean reportAvailableBytes = false;
}
private static final String ROOT_ID_PRIMARY_EMULATED =