mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-05-09 11:04:30 +02:00
22 lines
735 B
Kotlin
22 lines
735 B
Kotlin
package app.revanced.patches.spotify.navbar
|
|
|
|
import app.revanced.patcher.data.ResourceContext
|
|
import app.revanced.patcher.patch.ResourcePatch
|
|
import app.revanced.patcher.patch.annotation.Patch
|
|
import app.revanced.patches.shared.misc.mapping.ResourceMappingPatch
|
|
|
|
@Patch(dependencies = [ResourceMappingPatch::class])
|
|
object PremiumNavbarTabResourcePatch : ResourcePatch() {
|
|
internal var showBottomNavigationItemsTextId = -1L
|
|
internal var premiumTabId = -1L
|
|
|
|
override fun execute(context: ResourceContext) {
|
|
premiumTabId = ResourceMappingPatch["id", "premium_tab"]
|
|
|
|
showBottomNavigationItemsTextId = ResourceMappingPatch[
|
|
"bool",
|
|
"show_bottom_navigation_items_text",
|
|
]
|
|
}
|
|
}
|