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

Commit 3be54713 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski Committed by android-build-merger
Browse files

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

am: b843033a

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


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


    public boolean isVirtual() {
    public boolean isVirtual() {