Skip to content

Commit

Permalink
fix: use correct classes to determine option type
Browse files Browse the repository at this point in the history
I can't believe this happened
  • Loading branch information
Axelen123 committed Oct 6, 2023
1 parent d8392ad commit abf4d91
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import app.revanced.manager.R
import app.revanced.manager.data.platform.FileSystem
import app.revanced.manager.patcher.patch.Option
import app.revanced.manager.util.toast
import app.revanced.patcher.patch.options.PatchOption
import app.revanced.patcher.patch.options.types.*
import org.koin.compose.rememberKoinInject

Expand Down Expand Up @@ -196,8 +195,8 @@ fun OptionItem(option: Option, value: Any?, setValue: (Any?) -> Unit) {
val implementation = remember(option.type) {
when (option.type) {
// These are the only two types that are currently used by the official patches.
StringOption::class.java -> StringOption
BooleanOption::class.java -> BooleanOption
StringPatchOption::class.java -> StringOption
BooleanPatchOption::class.java -> BooleanOption
else -> UnknownOption
}
}
Expand Down

0 comments on commit abf4d91

Please sign in to comment.