By looping through children, there is no need to remember the last index. Bug: 7600384 Change-Id: I8b42b0aa38874ee494c6c4ecc09194a1d3c16922