diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-21 21:03:06 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-21 21:03:06 +0200 |
commit | 423d750431cd5ed0cb9e29f29c7f7bb466ec1d09 (patch) | |
tree | e5be1655a34ab0cafc055382d234af436441b068 | |
parent | 18bdee2363a1f7d605c150059019a5133affc57d (diff) |
make file observer listen for moves
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java b/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java index 4c2583533..34110d7fd 100644 --- a/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java +++ b/src/main/java/de/pixart/messenger/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) { |