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

Commit ad9cbfbc authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

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
parent 85319103
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 =