make file observer listen for moves
This commit is contained in:
parent
9bff9900d1
commit
3be3bfb492
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue