Fix view index tracking.

As we have a header and a footer view now, the assumption 'pref list
size == child count' doesn't hold anymore.

Change-Id: I1b4ab16907eea758921ccce64af01d2a73e82459
1 file changed