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

Commit db9fe487 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Partial files shouldn't be openable as archives.

Test: None
Bug: None
Change-Id: I3c6e216b5a1aa65f1fd4385606915b9d31e7dbca
parent d2d654c7
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() {