mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Prevent crash
This commit is contained in:
@@ -63,6 +63,9 @@ public class EntityLog {
|
||||
static void log(final Context context, String data) {
|
||||
Log.i(data);
|
||||
|
||||
if (context == null)
|
||||
return;
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean main_log = prefs.getBoolean("main_log", true);
|
||||
if (!main_log)
|
||||
|
||||
Reference in New Issue
Block a user