From d5584eff59052d08ddcafd84c7b733720c038512 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 4 Nov 2021 14:53:36 +0100 Subject: use deprecated method to initiate FileObserver for now to avoid crashes on old devices --- app/src/main/java/se/leap/bitmaskclient/tor/ClientTransportPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') 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 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) { -- cgit v1.2.3