Skip to content

Commit bb80cb4

Browse files
committed
feat: f
1 parent ef04bf1 commit bb80cb4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/extension/src/main/java/app/revanced/extension/customfilters/TintFieldHook.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ public static void installCustomTintSlot(Object table) {
190190
filtersSubTableField.setAccessible(true);
191191
Object filtersSubTable = filtersSubTableField.get(table);
192192

193-
// Add to table and get Cell
194-
Method tableAdd = tableClass.getMethod("add", Object.class);
193+
// FIX: Use Actor class instead of Object for the add method
194+
Method tableAdd = tableClass.getMethod("add", actorClass); // Changed Object.class to actorClass
195195
Object cell = tableAdd.invoke(filtersSubTable, fieldInstance);
196196

197-
// Configure Cell layout: colspan(2).fillX()
197+
// Configure Cell layout: colspan(2).fillX()
198198
try {
199199
Method colspan = cellClass.getMethod("colspan", int.class);
200200
Object cellAfterColspan = colspan.invoke(cell, 2);
@@ -207,7 +207,7 @@ public static void installCustomTintSlot(Object table) {
207207
Log.w(TAG, "Could not configure Cell layout: " + e.getMessage());
208208
}
209209

210-
// Add row separator
210+
// Add row separator
211211
Method tableRow = tableClass.getMethod("row");
212212
tableRow.invoke(filtersSubTable);
213213

0 commit comments

Comments
 (0)