From 3be3bfb49263b1217c0ea8e8ee3f9a573cb40c20 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 20 May 2018 16:19:23 +0200 Subject: [PATCH] make file observer listen for moves --- .../eu/siacs/conversations/utils/ConversationsFileObserver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/ConversationsFileObserver.java b/src/main/java/eu/siacs/conversations/utils/ConversationsFileObserver.java index 3e0cfd2a4..aab0e146f 100644 --- a/src/main/java/eu/siacs/conversations/utils/ConversationsFileObserver.java +++ b/src/main/java/eu/siacs/conversations/utils/ConversationsFileObserver.java @@ -29,7 +29,7 @@ public abstract class ConversationsFileObserver { while (!stack.empty()) { String parent = stack.pop(); - mObservers.add(new SingleFileObserver(parent, FileObserver.DELETE)); + mObservers.add(new SingleFileObserver(parent, FileObserver.DELETE| FileObserver.MOVED_FROM)); final File path = new File(parent); final File[] files = path.listFiles(); if (files == null) {