commit | d6be1758b38d5b066ff10b6af906aa66c63670cd | [log] [tgz] |
---|---|---|
author | Cary Clark <cary@android.com> | Wed Aug 12 12:56:42 2009 -0400 |
committer | Cary Clark <cary@android.com> | Thu Aug 13 15:10:22 2009 -0400 |
tree | a610bd76f4feeca796df59f3ecf0ec7354a16324 | |
parent | 1f005d370557b6e69d2de6537e5ea21f73a7ec3f [diff] [blame] |
handle false results in file.delete and similar calls found by findbugs http://b/issue?id=1856614
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 7b76cf8..6ea9ebb 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java
@@ -279,7 +279,9 @@ public Void doInBackground(File... files) { if (files != null) { for (File f : files) { - f.delete(); + if (!f.delete()) { + Log.e(LOGTAG, f.getPath() + " was not deleted"); + } } } return null;