fixed issue 1509, deadlock in AndroidGraphics when executing runnables