Fix the Ok Zoomer compatibility on newer versions
This commit is contained in:
parent
4bc41e3b38
commit
735de8d0b7
|
@ -52,10 +52,10 @@ private val okZoomerPairs by lazy {
|
|||
} catch (e: ClassNotFoundException) {
|
||||
with(Class.forName("io.github.ennuil.okzoomer.utils.ZoomUtils").getDeclaredField("zoomerZoom")) {
|
||||
get(null).javaClass.run {
|
||||
(getField("zoomDivisor") to this@with) to (getField("zoom") to this@with)
|
||||
(getDeclaredField("zoomDivisor") to this@with.get(null)) to (getDeclaredField("zoom") to this@with.get(null))
|
||||
}
|
||||
}
|
||||
}
|
||||
}.apply { first.first.isAccessible = true; second.first.isAccessible = true; }
|
||||
}
|
||||
|
||||
fun fabricZoom() {
|
||||
|
|
Loading…
Reference in New Issue