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

Commit c74a7686 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 3d04afb4 25adf3c4
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);
    }