From bf3fe50461c477aefe72a9c32896d8e3eb0366b4 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 20 Oct 2016 18:18:09 +0900 Subject: [PATCH] Fixed broken code --- .../nutomic/syncthingandroid/syncthing/SyncthingRunnable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java index 4ab5c33f..fa6ef8e1 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java @@ -118,7 +118,7 @@ public class SyncthingRunnable implements Runnable { // Set home directory to data folder for web GUI folder picker. env.put("HOME", Environment.getExternalStorageDirectory().getAbsolutePath()); env.put("STTRACE", sp.getString("sttrace", "")); - env.put("STGUIASSETS", getExternalFilesDir(null).getAbsolutePath() + "/gui"); + env.put("STGUIASSETS", mContext.getExternalFilesDir(null).getAbsolutePath() + "/gui"); env.put("STNORESTART", "1"); env.put("STNOUPGRADE", "1"); if (sp.getBoolean("use_tor", false)) {