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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user