Skip to content

Commit 17dc4a0

Browse files
removing the existing default does not seem to be required
1 parent 109bab7 commit 17dc4a0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

patches/src/main/kotlin/app/revanced/patches/shared/layout/branding/BaseCustomBrandingPatch.kt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import app.revanced.patches.shared.misc.settings.preference.ListPreference
1717
import app.revanced.util.ResourceGroup
1818
import app.revanced.util.Utils.trimIndentMultiline
1919
import app.revanced.util.copyResources
20-
import app.revanced.util.findElementByAttributeValue
2120
import app.revanced.util.findElementByAttributeValueOrThrow
2221
import app.revanced.util.returnEarly
2322
import 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

0 commit comments

Comments
 (0)