Do not reuse fragment indices.

Bug 25472591

Use a SparseArray instead of two ArrayLists to track
active fragments. This allows monotonically increasing
indexes instead of reusing indexes in the ArrayList.

Test: ran fragment tests
Change-Id: Ibb6cc842c8cfc85589bca5997cd61d24a0ab6243
2 files changed