Skip to main content

Bug in Android Implementation on version 3.0 and higher, it has a Font error

2 replies [Last post]
ajochems
Offline
Joined: 2010-08-23
Points: 0

The font string can not be correctly intrepeted. In the AndroidFont class the size string at line 111 ends with ';' so the line that tries to parse it to an Integer false with an invalid number exception. If i add the following code at line 112 it works correctly

if(size.endsWith(";")){size = size.substring(0, size.lastIndexOf(";"));}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
longj2me
Offline
Joined: 2010-03-25
Points: 0
ajochems
Offline
Joined: 2010-08-23
Points: 0

I am using revision 163 ... the error occurs in that version.