Merge commit '7a51b14d9f7f8c48c74ed1787bed3ef83aae6658' * commit '7a51b14d9f7f8c48c74ed1787bed3ef83aae6658': Check if rename of backed up file fails before persisting new changes.
This commit is contained in:
@@ -2760,6 +2760,7 @@ class ApplicationContext extends Context {
|
||||
if (mFile.exists()) {
|
||||
if (!mFile.renameTo(mBackupFile)) {
|
||||
Log.e(TAG, "Couldn't rename file " + mFile + " to backup file " + mBackupFile);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user