commit 4e3b393ea15163158c66fb2db896ca9b87a59622
parent 6c18f9883978b7890a61b3c3fdd1599615d8d765
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Fri, 27 Oct 2023 15:17:02 +0200

fix(mapper): OperaPageViewControllerMapper

Diffstat:
Mmapper/src/main/kotlin/me/rhunk/snapenhance/mapper/impl/OperaPageViewControllerMapper.kt | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/mapper/src/main/kotlin/me/rhunk/snapenhance/mapper/impl/OperaPageViewControllerMapper.kt b/mapper/src/main/kotlin/me/rhunk/snapenhance/mapper/impl/OperaPageViewControllerMapper.kt @@ -26,6 +26,7 @@ class OperaPageViewControllerMapper : AbstractClassMapper() { val onDisplayStateChange = clazz.methods.first { if (it.returnType != "V" || it.parameterTypes.size != 1) return@first false val firstParameterType = getClass(it.parameterTypes[0]) ?: return@first false + if (firstParameterType.type == clazz.type || !firstParameterType.isAbstract()) return@first false //check if the class contains a field with the enumViewStateClass type firstParameterType.fields.any { field -> field.type == viewStateField.type