File tree Expand file tree Collapse file tree
extensions/extension/src/main/java/app/revanced/extension/customfilters Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments