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

Commit b843033a authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski Committed by Android (Google) Code Review
Browse files

Merge "Partial files shouldn't be openable as archives." into arc-apps

parents db7664fa db9fe487
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -263,8 +263,9 @@ public class DocumentInfo implements Durable, Parcelable {
        return (flags & Document.FLAG_PARTIAL) != 0;
    }

    // Containers are documents which can be opened in DocumentsUI as folders.
    public boolean isContainer() {
        return isDirectory() || (isArchive() && !isInArchive());
        return isDirectory() || (isArchive() && !isInArchive() && !isPartial());
    }

    public boolean isVirtual() {