aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-12 21:28:13 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-12 21:28:13 +0200
commit0f86e24606c98872b605ef8d9d69ca5d1f9b2703 (patch)
treea0df282af911f572cd59682fd71e675df475f12d /src/main/java
parentffbbc9fdfc09991344c29387dfb92a9e124063a6 (diff)
improved logging while deleting old cache files
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/services/BarcodeProvider.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/services/BarcodeProvider.java b/src/main/java/de/pixart/messenger/services/BarcodeProvider.java
index dafd61720..67dc74cc6 100644
--- a/src/main/java/de/pixart/messenger/services/BarcodeProvider.java
+++ b/src/main/java/de/pixart/messenger/services/BarcodeProvider.java
@@ -78,8 +78,9 @@ public class BarcodeProvider extends ContentProvider implements ServiceConnectio
if (barcodeDirectory.exists() && barcodeDirectory.isDirectory()) {
for (File file : barcodeDirectory.listFiles()) {
if (file.isFile() && !file.isHidden()) {
- Log.d(Config.LOGTAG, "deleting old barcode file " + file.getAbsolutePath());
- file.delete();
+ if (file.delete()) {
+ Log.d(Config.LOGTAG, "deleted old barcode file " + file.getAbsolutePath());
+ }
}
}
}