Optimize code for performance

Problem statement:
Very unlikely to encounter ArrayIndexOutOfBoundsException on SparseIntArray.get()

Solution:
Optimize the redundant invocation and reduce ambiguity in recalculating the default value.

Bug id: 395793343
Google: 3498538
Change-Id: I56595090d2ab39bb723f63f7b708335f5e434d74
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
1 file changed