diff options
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/BarcodeProvider.java | 5 |
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()); + } } } } |