File tree Expand file tree Collapse file tree 3 files changed +66
-0
lines changed
src/main/kotlin/app/revanced/patches/stocard/layout Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -1040,6 +1040,18 @@ public final class app/revanced/patches/spotify/navbar/PremiumNavbarTabResourceP
10401040 public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
10411041}
10421042
1043+ public final class app/revanced/patches/stocard/layout/HideOffersTabPatch : app/revanced/patcher/patch/ResourcePatch {
1044+ public static final field INSTANCE Lapp/revanced/patches/stocard/layout/HideOffersTabPatch;
1045+ public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
1046+ public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
1047+ }
1048+
1049+ public final class app/revanced/patches/stocard/layout/HideStoryBubblesPatch : app/revanced/patcher/patch/ResourcePatch {
1050+ public static final field INSTANCE Lapp/revanced/patches/stocard/layout/HideStoryBubblesPatch;
1051+ public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
1052+ public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
1053+ }
1054+
10431055public final class app/revanced/patches/strava/subscription/UnlockSubscriptionPatch : app/revanced/patcher/patch/BytecodePatch {
10441056 public static final field INSTANCE Lapp/revanced/patches/strava/subscription/UnlockSubscriptionPatch;
10451057 public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
Original file line number Diff line number Diff line change 1+ package app.revanced.patches.stocard.layout
2+
3+ import app.revanced.patcher.data.ResourceContext
4+ import app.revanced.patcher.patch.ResourcePatch
5+ import app.revanced.patcher.patch.annotation.CompatiblePackage
6+ import app.revanced.patcher.patch.annotation.Patch
7+ import app.revanced.util.childElementsSequence
8+ import app.revanced.util.getNode
9+
10+ @Patch(
11+ name = " Hide offers tab" ,
12+ compatiblePackages = [CompatiblePackage (" de.stocard.stocard" )],
13+ )
14+ @Suppress(" unused" )
15+ object HideOffersTabPatch : ResourcePatch() {
16+ override fun execute (context : ResourceContext ) {
17+ context.document[" res/menu/bottom_navigation_menu.xml" ].use { document ->
18+ document.getNode(" menu" ).apply {
19+ removeChild(
20+ childElementsSequence().first {
21+ it.attributes.getNamedItem(" android:id" )?.nodeValue?.contains(" offer" ) ? : false
22+ },
23+ )
24+ }
25+ }
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ package app.revanced.patches.stocard.layout
2+
3+ import app.revanced.patcher.data.ResourceContext
4+ import app.revanced.patcher.patch.ResourcePatch
5+ import app.revanced.patcher.patch.annotation.CompatiblePackage
6+ import app.revanced.patcher.patch.annotation.Patch
7+ import app.revanced.util.getNode
8+
9+ @Patch(
10+ name = " Hide story bubbles" ,
11+ compatiblePackages = [CompatiblePackage (" de.stocard.stocard" )],
12+ )
13+ @Suppress(" unused" )
14+ object HideStoryBubblesPatch : ResourcePatch() {
15+ override fun execute (context : ResourceContext ) {
16+ context.document[" res/layout/rv_story_bubbles_list.xml" ].use { document ->
17+ document.getNode(" androidx.recyclerview.widget.RecyclerView" ).apply {
18+ arrayOf(
19+ " android:layout_width" ,
20+ " android:layout_height" ,
21+ ).forEach {
22+ attributes.getNamedItem(it).nodeValue = " 0dp"
23+ }
24+ }
25+ }
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments