Merge "Don't delete the new file in openRead()." into rvc-dev am: c74a76863b am: 79778d0914
Change-Id: Ifeda841248e75ef99e6cfdc855c37eadabb7b5ac
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user