Revert "Added debug classes"

This reverts commit 18c85872f3.
This commit is contained in:
M66B
2024-05-13 17:26:34 +02:00
parent 048c558ebd
commit a805164231
6 changed files with 12 additions and 16 deletions

View File

@@ -65,7 +65,7 @@ public class EntityLog {
@NonNull
public String data;
public enum Type {General, Statistics, Scheduling, Network, Account, Protocol, Classification, Notification, Rules, Cloud, Debug1, Debug2, Debug3}
public enum Type {General, Statistics, Scheduling, Network, Account, Protocol, Classification, Notification, Rules, Cloud, Debug}
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.Debug1 || type == Type.Debug2 || type == Type.Debug3) &&
if (type == Type.Debug &&
!(BuildConfig.DEBUG || Log.isTestRelease()))
return;
@@ -233,12 +233,8 @@ public class EntityLog {
return ContextCompat.getColor(context, R.color.solarizedCyan);
case Cloud:
return ContextCompat.getColor(context, R.color.solarizedRed);
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);
case Debug:
return Helper.resolveColor(context, R.attr.colorWarning);
default:
return null;
}