mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-22 19:08:58 +02:00
fix(mapper): OperaPageViewControllerMapper
This commit is contained in:
parent
420057a3bd
commit
759a61df46
@ -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 = context.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
|
||||
@ -50,4 +51,4 @@ class OperaPageViewControllerMapper : AbstractClassMapper() {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user