mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 13:44:25 +02:00
fix: fallback to patch class name instead of java.lang.Class
class name
This commit is contained in:
parent
18fe35ae73
commit
4164cb0dea
@ -41,7 +41,7 @@ private fun <T : Annotation> Class<*>.findAnnotationRecursively(
|
||||
|
||||
object PatchExtensions {
|
||||
val Class<out Patch<Context>>.patchName: String
|
||||
get() = findAnnotationRecursively(Name::class)?.name ?: this.javaClass.simpleName
|
||||
get() = findAnnotationRecursively(Name::class)?.name ?: this.simpleName
|
||||
|
||||
val Class<out Patch<Context>>.version
|
||||
get() = findAnnotationRecursively(Version::class)?.version
|
||||
|
Loading…
x
Reference in New Issue
Block a user