mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Added debug classes
This commit is contained in:
@@ -65,7 +65,7 @@ public class EntityLog {
|
||||
@NonNull
|
||||
public String data;
|
||||
|
||||
public enum Type {General, Statistics, Scheduling, Network, Account, Protocol, Classification, Notification, Rules, Cloud, Debug}
|
||||
public enum Type {General, Statistics, Scheduling, Network, Account, Protocol, Classification, Notification, Rules, Cloud, Debug1, Debug2, Debug3}
|
||||
|
||||
public static void log(final Context context, String data) {
|
||||
log(context, Type.General, data);
|
||||
@@ -109,7 +109,7 @@ public class EntityLog {
|
||||
|
||||
if (context == null)
|
||||
return;
|
||||
if (type == Type.Debug &&
|
||||
if ((type == Type.Debug1 || type == Type.Debug2 || type == Type.Debug3) &&
|
||||
!(BuildConfig.DEBUG || Log.isTestRelease()))
|
||||
return;
|
||||
|
||||
@@ -233,8 +233,12 @@ public class EntityLog {
|
||||
return ContextCompat.getColor(context, R.color.solarizedCyan);
|
||||
case Cloud:
|
||||
return ContextCompat.getColor(context, R.color.solarizedRed);
|
||||
case Debug:
|
||||
return Helper.resolveColor(context, R.attr.colorWarning);
|
||||
case Debug1:
|
||||
return ContextCompat.getColor(context, R.color.solarizedRed);
|
||||
case Debug2:
|
||||
return ContextCompat.getColor(context, R.color.solarizedGreen);
|
||||
case Debug3:
|
||||
return ContextCompat.getColor(context, R.color.solarizedBlue);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user