Prevent crash

pull/197/head
M66B 4 years ago
parent b7d228cbe1
commit 972fdb6fec

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

Loading…
Cancel
Save