diff options
author | Dianne Hackborn <> | 2009-03-24 19:11:58 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 19:11:58 -0700 |
commit | 1bf5e22da72b477c8b7a45ed85a4dba94be39db5 (patch) | |
tree | bec2084fe45aff661acb5abeeb0a725cade038d1 /core/java/android/app/ApplicationContext.java | |
parent | e68ffcb5764152da6d36adc8f2918200b4472c23 (diff) | |
download | frameworks_base-1bf5e22da72b477c8b7a45ed85a4dba94be39db5.zip frameworks_base-1bf5e22da72b477c8b7a45ed85a4dba94be39db5.tar.gz frameworks_base-1bf5e22da72b477c8b7a45ed85a4dba94be39db5.tar.bz2 |
Automated import from //branches/donutburger/...@141001,141001
Diffstat (limited to 'core/java/android/app/ApplicationContext.java')
-rw-r--r-- | core/java/android/app/ApplicationContext.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/java/android/app/ApplicationContext.java b/core/java/android/app/ApplicationContext.java index ecef38f..55fce49 100644 --- a/core/java/android/app/ApplicationContext.java +++ b/core/java/android/app/ApplicationContext.java @@ -2723,10 +2723,8 @@ class ApplicationContext extends Context { mTimestamp = mFileStatus.mtime; } - // Writing was successful, delete the backup file - if (!mBackupFile.delete()) { - Log.e(TAG, "Couldn't delete new backup file " + mBackupFile); - } + // Writing was successful, delete the backup file if there is one. + mBackupFile.delete(); return true; } catch (XmlPullParserException e) { Log.w(TAG, "writeFileLocked: Got exception:", e); |