Fixed NoSuchMethodError when calling display.getSize(size) on older devices.