Make the fill buffer compatible with Android 4.2 as well as 4.4+