make file observer listen for moves

This commit is contained in:
Daniel Gultsch 2018-05-20 16:19:23 +02:00
parent 9bff9900d1
commit 3be3bfb492

View file

@ -29,7 +29,7 @@ public abstract class ConversationsFileObserver {
while (!stack.empty()) { while (!stack.empty()) {
String parent = stack.pop(); 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 path = new File(parent);
final File[] files = path.listFiles(); final File[] files = path.listFiles();
if (files == null) { if (files == null) {