mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-25 11:02:13 +02:00
fix: use correct classes to determine option type
I can't believe this happened
This commit is contained in:
parent
57ba3ad374
commit
59ddd9f393
@ -29,7 +29,6 @@ import app.revanced.manager.R
|
|||||||
import app.revanced.manager.data.platform.FileSystem
|
import app.revanced.manager.data.platform.FileSystem
|
||||||
import app.revanced.manager.patcher.patch.Option
|
import app.revanced.manager.patcher.patch.Option
|
||||||
import app.revanced.manager.util.toast
|
import app.revanced.manager.util.toast
|
||||||
import app.revanced.patcher.patch.options.PatchOption
|
|
||||||
import app.revanced.patcher.patch.options.types.*
|
import app.revanced.patcher.patch.options.types.*
|
||||||
import org.koin.compose.rememberKoinInject
|
import org.koin.compose.rememberKoinInject
|
||||||
|
|
||||||
@ -196,8 +195,8 @@ fun OptionItem(option: Option, value: Any?, setValue: (Any?) -> Unit) {
|
|||||||
val implementation = remember(option.type) {
|
val implementation = remember(option.type) {
|
||||||
when (option.type) {
|
when (option.type) {
|
||||||
// These are the only two types that are currently used by the official patches.
|
// These are the only two types that are currently used by the official patches.
|
||||||
StringOption::class.java -> StringOption
|
StringPatchOption::class.java -> StringOption
|
||||||
BooleanOption::class.java -> BooleanOption
|
BooleanPatchOption::class.java -> BooleanOption
|
||||||
else -> UnknownOption
|
else -> UnknownOption
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user