Merge "Don't delete the new file in openRead()." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c74a76863b
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user