maxlines fix for android level < 16