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

Commit da19f14d authored by Garfield Tan's avatar Garfield Tan Committed by android-build-merger
Browse files

Merge "Fix an assertion to avoid crash on deletions in Recent root." into nyc-dev am: 7a91029b

am: f846d851

* commit 'f846d851':
  Fix an assertion to avoid crash on deletions in Recent root.

Change-Id: I13b89ea99d8319da7cbb001a024814757b1beec7
parents 212083bd f846d851
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -308,7 +308,9 @@ abstract public class Job implements Runnable {
                String id, DocumentStack stack, List<DocumentInfo> srcs,
                DocumentInfo srcParent) {
            assert(!srcs.isEmpty());
            assert(stack.peek().isDirectory());  // we can't currently delete from archives.
            // stack is empty if we delete docs from recent.
            // we can't currently delete from archives.
            assert(stack.isEmpty() || stack.peek().isDirectory());
            return new DeleteJob(service, appContext, listener, id, stack, srcs, srcParent);
        }
    }