SubwayTooter
SubwayTooter copied to clipboard
IllecalFormatConversionException d != [Ljava.lang.Object
https://qdon.space/users/jarm/statuses/108413714163875811
I got this error when i tried to post with poll
Error
IllecalFormatConversionException
d != [Ljava.lang.Object
Poll Items that maybe posted by other client. https://qdon.space/@jarm/108413708557580493
it's composition of 2 problem.
The first is lack of spread operator *
where the code that app showing error, it method receives vararg args :Any?
and pass to Context.getString(int stringId, Object args...)
. by lacking spread operator, second argument of getString
will be arrayOf(Object[]), not args it self.
https://github.com/tateisu/SubwayTooter/commit/2273f7f94c461d63e50000f3ea489c3263efd41a fix it.
Then the second error appears.
Mastodon seems to have changed the number of characters in the voting options from 25 to 40. ST did not follow it.
it's fixed at https://github.com/tateisu/SubwayTooter/commit/238845284af1fb71b29a38d0d4322faa47062f56