If this code is getting out of synch with changes made to AndroidGraphics, perhaps the duplicate code should be factored out somewhere common to avoid this problem in the future?