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

Commit 990a0746 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't delete the new file in openRead()." into rvc-dev am: c74a7686

Change-Id: Ibf21e027df7db5c2cfd37ac7f19a1ba1383cc531
parents 3454aae5 c74a7686
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -227,11 +227,8 @@ public class AtomicFile {
            }
        }

        if (mNewName.exists()) {
            if (!mNewName.delete()) {
                Log.e(LOG_TAG, "Failed to delete outdated new file " + mNewName);
            }
        }
        // Don't delete mNewName here - it was okay to call openRead() between startWrite() and
        // finishWrite(), and we have to keep supporting it.
        return new FileInputStream(mBaseName);
    }