File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
patches/src/main/kotlin/app/revanced/patches/shared/layout/branding Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import app.revanced.patches.shared.misc.settings.preference.ListPreference
1717import app.revanced.util.ResourceGroup
1818import app.revanced.util.Utils.trimIndentMultiline
1919import app.revanced.util.copyResources
20- import app.revanced.util.findElementByAttributeValue
2120import app.revanced.util.findElementByAttributeValueOrThrow
2221import app.revanced.util.returnEarly
2322import org.w3c.dom.Element
@@ -313,19 +312,9 @@ internal fun baseCustomBrandingPatch(
313312 )
314313 originalIntent.parentNode.removeChild(originalIntent)
315314
316- val intentFilters = originalIntent.childNodes
317- for (i in 0 until intentFilters.length) {
318- // Remove the default element from all intents.
319- intentFilters.item(i).childNodes.findElementByAttributeValue(
320- " android:name" ,
321- " android.intent.category.DEFAULT"
322- )?.let { intent ->
323- intent.parentNode.removeChild(intent)
324- }
325- }
326-
327315 val namePrefix = " .revanced_"
328316 val iconResourcePrefix = " revanced_launcher_"
317+ val intentFilters = originalIntent.childNodes
329318 val application = document.getElementsByTagName(" application" )
330319 .item(0 ) as Element
331320
You can’t perform that action at this time.
0 commit comments