mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-20 10:47:33 +01:00
refactor: Reduce visibility of methods
This commit is contained in:
parent
9f1986960c
commit
12acb2d561
@ -70,7 +70,7 @@ object WideSearchbarPatch : BytecodePatch(
|
|||||||
* @param fromFingerprint The fingerprint to walk the method on.
|
* @param fromFingerprint The fingerprint to walk the method on.
|
||||||
* @return The [MutableMethod] which was walked on.
|
* @return The [MutableMethod] which was walked on.
|
||||||
*/
|
*/
|
||||||
fun BytecodeContext.walkMutable(index: Int, fromFingerprint: MethodFingerprint) =
|
private fun BytecodeContext.walkMutable(index: Int, fromFingerprint: MethodFingerprint) =
|
||||||
fromFingerprint.result?.let {
|
fromFingerprint.result?.let {
|
||||||
toMethodWalker(it.method).nextMethod(index, true).getMethod() as MutableMethod
|
toMethodWalker(it.method).nextMethod(index, true).getMethod() as MutableMethod
|
||||||
} ?: throw fromFingerprint.exception
|
} ?: throw fromFingerprint.exception
|
||||||
@ -79,7 +79,7 @@ object WideSearchbarPatch : BytecodePatch(
|
|||||||
/**
|
/**
|
||||||
* Injects instructions required for certain methods.
|
* Injects instructions required for certain methods.
|
||||||
*/
|
*/
|
||||||
fun MutableMethod.injectSearchBarHook() {
|
private fun MutableMethod.injectSearchBarHook() {
|
||||||
addInstructions(
|
addInstructions(
|
||||||
implementation!!.instructions.size - 1,
|
implementation!!.instructions.size - 1,
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user