mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(YouTube/Hide shorts components): use browseId instead of navigation bar index
- Sometimes the Shorts shelves are loaded first before the navigation bar index is updated, and under certain circumstances the Shorts shelves are not hidden properly. - This issue can be resolved by checking the browser id instead of the navigation bar index.
This commit is contained in:
@ -397,7 +397,7 @@ fun MutableClass.addFieldAndInstructions(
|
||||
|
||||
if (shouldAddConstructor) {
|
||||
context.findClass(objectClass)!!.mutableClass.methods
|
||||
.filter { method -> MethodUtil.isConstructor(method) }
|
||||
.filter { method -> method.name == "<init>" }
|
||||
.forEach { mutableMethod ->
|
||||
mutableMethod.apply {
|
||||
val initializeIndex = getTargetIndexWithMethodReferenceName("<init>")
|
||||
|
Reference in New Issue
Block a user