Skip to content

Commit d25dcfe

Browse files
authored
feat(Letterboxd): Add Unlock app icons patch (#6415)
1 parent 1cc2cb9 commit d25dcfe

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

patches/api/patches.api

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ public final class app/revanced/patches/letterboxd/ads/HideAdsPatchKt {
352352
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
353353
}
354354

355+
public final class app/revanced/patches/letterboxd/unlock/unlockAppIcons/UnlockAppIconsPatchKt {
356+
public static final fun getUnlockAppIconsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
357+
}
358+
355359
public final class app/revanced/patches/lightroom/misc/login/DisableMandatoryLoginPatchKt {
356360
public static final fun getDisableMandatoryLoginPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
357361
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package app.revanced.patches.letterboxd.unlock.unlockAppIcons
2+
3+
import app.revanced.patcher.fingerprint
4+
5+
internal val getCanChangeAppIconFingerprint = fingerprint {
6+
custom { method, classDef ->
7+
method.name == "getCanChangeAppIcon" && classDef.type.endsWith("SettingsAppIconFragment;")
8+
}
9+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
package app.revanced.patches.letterboxd.unlock.unlockAppIcons
3+
4+
import app.revanced.patcher.patch.bytecodePatch
5+
import app.revanced.util.returnEarly
6+
7+
@Suppress("unused")
8+
val unlockAppIconsPatch = bytecodePatch(
9+
name = "Unlock app icons",
10+
) {
11+
compatibleWith("com.letterboxd.letterboxd")
12+
13+
execute {
14+
getCanChangeAppIconFingerprint.method.returnEarly(true)
15+
}
16+
}

0 commit comments

Comments
 (0)