I tested this on the Edge 540 and 1040 using the simulator. Both devices support CIQ level 5.1, and according to the documentation, Dc.setFill()
has been available since CIQ 4.0.
However, calling this function results in the following runtime exception:
Error: Symbol Not Found Error
Details: Could not find symbol 'setFill'
Stack:
- draw() at OnOffStateBitmaps.mc:62
- initialize() at OnOffStateBitmaps.mc:41
- get() at OnOffStateBitmaps.mc:18
- getOnOffBitmap() at OnOffStateDrawable.mc:43
- initialize() at OnOffStateDrawable.mc:24
- initialize() at OnOffSwitchMenuItem.mc:43
- createMenuItem() at MenuItemFactory.mc:21
- invoke() at BasePageMenuTasks.mc:74
- executeTasks() at TaskQueue.mc:90
You can view the relevant code here:
OnOffStateBitmaps.mc
The setFill
call is now commented out and instead setColor is used.