Skip to content

Commit

Permalink
fix: Fix crash when opening feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
crimera committed Jun 11, 2024
1 parent 715c211 commit 051bb21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package app.revanced.integrations.twitter.settings.featureflags;

import android.annotation.SuppressLint;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Switch;
Expand Down Expand Up @@ -110,8 +109,9 @@ public void F(ViewHolder viewHolder, int i) {
enabled.setChecked(flags.get(i).getEnabled());
}

// setCount abstract method, change this in revanced patches
@Override
public int k() {
public int getCount() {
return flags.size();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public static abstract class g {}
public static abstract class e<VH extends c0> {
public final f c = new f();

public abstract int k();
// get count
public abstract int getCount();

public abstract c0 I(int i, RecyclerView recyclerView);

Expand Down

0 comments on commit 051bb21

Please sign in to comment.