Stefan
07/24/2019, 12:24 PMtseisel
07/24/2019, 4:36 PMListPreference
has setValue(String)
but not setIndexValue
(it is named setValueIndex(Int)
).
In Kotlin, when a class has 2 methods like the following : Foo getFoo()
, setFoo( Foo f)
, Kotlin converts it to a property, so you can directly write obj.foo = ...
instead of obj.setFoo(...)
.
That's the case for `ListPreference`: it has both getValue()
and setValue(String)
, thus the IDE suggests you "value" instead of "setValue(String)".ListPreference
, maybe you could share some code ?Stefan
07/24/2019, 4:42 PM