diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java
index e4b1594b..0f42713e 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java
@@ -41,7 +41,7 @@ public class GBApplication extends Application {
public static boolean isFileLoggingEnabled() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(GBApplication.getContext());
- return prefs.getBoolean(GBApplication.getContext().getString(R.string.pref_log_to_file), false);
+ return prefs.getBoolean("log_to_file", false);
}
private void setupLogging() {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 37e33edc..e9f52eae 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -102,7 +102,6 @@
Vibration Count
Sleep Monitor
- LogToFile
Write Log Files (needs restart)
initializing
Fetching Activity Data
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index 1bbd3703..274e8744 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -66,7 +66,7 @@
android:title="@string/pref_header_development">