forked from crimera/piko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: Improved the hooking of the recyclerview methods. also fixes …
…the crash when opening feature flags.
- Loading branch information
Showing
3 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/kotlin/crimera/patches/twitter/featureFlag/fingerprints/RecyclerViewFingerprints.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package crimera.patches.twitter.featureFlag.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
object GetCountFingerprint: MethodFingerprint( | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.ABSTRACT, | ||
returnType = "I", | ||
customFingerprint = { methodDef, _ -> | ||
methodDef.definingClass.endsWith("Landroidx/recyclerview/widget/RecyclerView\$e;") | ||
} | ||
) | ||
|
||
object OnCreateViewHolderFingerprint: MethodFingerprint( | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.ABSTRACT, | ||
returnType = "Landroidx/recyclerview/widget/RecyclerView\$c0;", | ||
customFingerprint = { methodDef, _ -> | ||
methodDef.definingClass.endsWith("Landroidx/recyclerview/widget/RecyclerView\$e;") | ||
} | ||
) | ||
|
||
object OnBindViewHolderFingerprint: MethodFingerprint( | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.ABSTRACT, | ||
returnType = "V", | ||
customFingerprint = { methodDef, _ -> | ||
methodDef.definingClass.endsWith("Landroidx/recyclerview/widget/RecyclerView\$e;") | ||
} | ||
) |
13 changes: 0 additions & 13 deletions
13
...otlin/crimera/patches/twitter/featureFlag/fingerprints/RecyclerViewGetCountFingerprint.kt
This file was deleted.
Oops, something went wrong.