summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-04 14:53:36 +0100
committercyBerta <cyberta@riseup.net>2021-11-04 14:53:36 +0100
commitd5584eff59052d08ddcafd84c7b733720c038512 (patch)
tree82c4dfca444e3c6b3dc2193243a8cd7132090c0b /app
parent679d10626457306000b1148f8e94a16f6a074f96 (diff)
use deprecated method to initiate FileObserver for now to avoid crashes on old devices
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/tor/ClientTransportPlugin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/tor/ClientTransportPlugin.java b/app/src/main/java/se/leap/bitmaskclient/tor/ClientTransportPlugin.java
index 6228453e..5fc604e5 100644
--- a/app/src/main/java/se/leap/bitmaskclient/tor/ClientTransportPlugin.java
+++ b/app/src/main/java/se/leap/bitmaskclient/tor/ClientTransportPlugin.java
@@ -66,7 +66,7 @@ public class ClientTransportPlugin implements ClientTransportPluginInterface {
private void watchLogFile(File logfile) {
final Vector<String> lastBuffer = new Vector<>();
- logFileObserver = new FileObserver(logfile) {
+ logFileObserver = new FileObserver(logfile.getAbsolutePath()) {
@Override
public void onEvent(int event, @Nullable String name) {
if (FileObserver.MODIFY == event) {