mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +01:00
fix: use Log.d for debugging (#66)
This commit is contained in:
parent
f74a11523f
commit
605124bc60
@ -29,7 +29,7 @@ public class LithoAdRemoval {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (value == null || value.isEmpty() || !enabled) return false;
|
if (value == null || value.isEmpty() || !enabled) return false;
|
||||||
LogHelper.printException(LithoAdRemoval.class, "Searching for AD: " + value);
|
LogHelper.debug(LithoAdRemoval.class, "Searching for AD: " + value);
|
||||||
|
|
||||||
List<String> blockList = new ArrayList<>();
|
List<String> blockList = new ArrayList<>();
|
||||||
List<String> bufferBlockList = new ArrayList<>();
|
List<String> bufferBlockList = new ArrayList<>();
|
||||||
|
@ -193,34 +193,28 @@ public enum SettingsEnum {
|
|||||||
public int getInt() {
|
public int getInt() {
|
||||||
SettingsEnum.loadSettings();
|
SettingsEnum.loadSettings();
|
||||||
if (value == null) value = -1;
|
if (value == null) value = -1;
|
||||||
LogHelper.debug(SettingsEnum.class, "Variable " + name() + " is " + value);
|
|
||||||
return (int) value;
|
return (int) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getString() {
|
public String getString() {
|
||||||
SettingsEnum.loadSettings();
|
SettingsEnum.loadSettings();
|
||||||
LogHelper.debug(SettingsEnum.class, "Variable " + name() + " is " + value);
|
|
||||||
return (String) value;
|
return (String) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getBoolean() {
|
public boolean getBoolean() {
|
||||||
SettingsEnum.loadSettings();
|
SettingsEnum.loadSettings();
|
||||||
if (this != DEBUG_BOOLEAN)
|
|
||||||
LogHelper.debug(SettingsEnum.class, "Variable " + name() + " is " + value);
|
|
||||||
return (Boolean) value;
|
return (Boolean) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getLong() {
|
public Long getLong() {
|
||||||
SettingsEnum.loadSettings();
|
SettingsEnum.loadSettings();
|
||||||
if (value == null) value = -1L;
|
if (value == null) value = -1L;
|
||||||
LogHelper.debug(SettingsEnum.class, "Variable " + name() + " is " + value);
|
|
||||||
return (Long) value;
|
return (Long) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
SettingsEnum.loadSettings();
|
SettingsEnum.loadSettings();
|
||||||
if (value == null) value = -1.0f;
|
if (value == null) value = -1.0f;
|
||||||
LogHelper.debug(SettingsEnum.class, "Variable " + name() + " is " + value);
|
|
||||||
return (Float) value;
|
return (Float) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ public class LogHelper {
|
|||||||
|
|
||||||
public static void debug(Class clazz, String message) {
|
public static void debug(Class clazz, String message) {
|
||||||
if (SettingsEnum.DEBUG_BOOLEAN.getBoolean()) {
|
if (SettingsEnum.DEBUG_BOOLEAN.getBoolean()) {
|
||||||
Log.e("ReVanced: " + (clazz != null ? clazz.getSimpleName() : ""), message);
|
Log.d("ReVanced: " + (clazz != null ? clazz.getSimpleName() : ""), message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user