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

Commit c900829c authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Deal with apps known to LocalTransport backend but with no data"

parents 8fcd3248 a9b91864
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -233,7 +233,9 @@ public class LocalTransport extends IBackupTransport.Stub {
        if (mRestorePackages == null) throw new IllegalStateException("startRestore not called");
        while (++mRestorePackage < mRestorePackages.length) {
            String name = mRestorePackages[mRestorePackage].packageName;
            if (new File(mDataDir, name).isDirectory()) {
            // skip packages where we have a data dir but no actual contents
            String[] contents = (new File(mDataDir, name)).list();
            if (contents != null && contents.length > 0) {
                if (DEBUG) Log.v(TAG, "  nextRestorePackage() = " + name);
                return name;
            }