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)) {