Apparently, I thought a theme was a good idea...

This commit is contained in:
d8ahazard
2016-09-25 00:16:28 -05:00
parent d2335485f2
commit c56dd4172e
26 changed files with 612 additions and 424 deletions
@@ -2,6 +2,7 @@ package com.topjohnwu.magisk.utils;
import android.app.Application;
import android.content.Context;
import android.preference.PreferenceManager;
import android.util.Log;
public class Logger {
@@ -15,7 +16,7 @@ public class Logger {
} catch (Exception e) {
e.printStackTrace();
}
if (PrefHelper.CheckBool("developer_logging", context)) {
if (PreferenceManager.getDefaultSharedPreferences(context).getBoolean("developer_logging", false)) {
if (args.length == 1 && args[0] instanceof Throwable) {
Log.d(LOG_TAG, msg, (Throwable) args[0]);
} else {