aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-07-09 21:15:56 +0200
committerChristian Schneppe <christian@pix-art.de>2018-07-09 21:15:56 +0200
commit71afe8ed86449aeb3795cef48fe815fd23e388d4 (patch)
tree32f660fe5bde6ef5e3aefe5a2f9cee557ed2dd81 /src/main/java/de/pixart/messenger/utils
parent3ac56bcbdb27be63275c00a60eef32cdd985c827 (diff)
restart file observer when permisson are granted
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r--src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java b/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java
index 72a01a13c..4e275df3f 100644
--- a/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java
+++ b/src/main/java/de/pixart/messenger/utils/ConversationsFileObserver.java
@@ -80,6 +80,11 @@ public abstract class ConversationsFileObserver {
abstract public void onEvent(int event, String path);
+ public void restartWatching() {
+ stopWatching();
+ startWatching();
+ }
+
private class SingleFileObserver extends FileObserver {
private final String path;