2014-06-28, 10:40 AM
fuzzweed Wrote:Is there anything to note in that the 'watch' and 'close' buttons work. Is this handled differently?Yes.
The button which is causing the crash is dual purpose - if the programme isn't already set to record then the text on the button shows "Record". If it is already set to record then the text is "Cancel". In this case I need to get the text from the button to work out what to do.
The "Close" and "Watch" buttons only ever do one thing each so I don't need to access their text - they're simply identified by a unique numeric identifier. The Record / Cancel button is also identified this way but I then need to check the text in order to work out what to do (schedule or cancel a recording). A normal Android Button shouldn't return a SpannableString (it can but only if explicitly set to having Spannable text). This is where the problem lies.
I'll try a workaround but it seems like I'm compensating for non-standard behaviour. Ideally the Cyanogenmod folk need to fix it as it will inevitably break other Android apps.