pull/208/head
M66B 3 years ago
parent 62bbaf4668
commit c12caa410d

@ -1731,7 +1731,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swCleanupAttachments.setChecked(prefs.getBoolean("cleanup_attachments", false)); swCleanupAttachments.setChecked(prefs.getBoolean("cleanup_attachments", false));
swWatchdog.setChecked(prefs.getBoolean("watchdog", true)); swWatchdog.setChecked(prefs.getBoolean("watchdog", true));
swMainLog.setChecked(prefs.getBoolean("main_log", false)); swMainLog.setChecked(prefs.getBoolean("main_log", true));
swProtocol.setChecked(prefs.getBoolean("protocol", false)); swProtocol.setChecked(prefs.getBoolean("protocol", false));
swLogInfo.setChecked(prefs.getInt("log_level", Log.getDefaultLogLevel()) <= android.util.Log.INFO); swLogInfo.setChecked(prefs.getInt("log_level", Log.getDefaultLogLevel()) <= android.util.Log.INFO);
swDebug.setChecked(prefs.getBoolean("debug", false)); swDebug.setChecked(prefs.getBoolean("debug", false));

@ -1843,7 +1843,7 @@ public class Log {
ContentResolver resolver = context.getContentResolver(); ContentResolver resolver = context.getContentResolver();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean main_log = prefs.getBoolean("main_log", false); boolean main_log = prefs.getBoolean("main_log", true);
boolean protocol = prefs.getBoolean("protocol", false); boolean protocol = prefs.getBoolean("protocol", false);
int level = prefs.getInt("log_level", Log.getDefaultLogLevel()); int level = prefs.getInt("log_level", Log.getDefaultLogLevel());
long last_cleanup = prefs.getLong("last_cleanup", 0); long last_cleanup = prefs.getLong("last_cleanup", 0);

Loading…
Cancel
Save