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

Change-Id: I8aed129e2bba536dc6b499ea9a9f502540f5cee8
This commit is contained in:
TreeHugger Robot
2020-05-20 08:19:04 +00:00
committed by Automerger Merge Worker

View File

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