Fix CanvasAdapter for Android.