OSDN Git Service

Fix IndexOutOfBoundsException while silent provisioning check
authorHyejin <hyejin.kim@lge.com>
Fri, 11 Sep 2015 06:26:53 +0000 (23:26 -0700)
committerVineeta Srivastava <vsrivastava@google.com>
Mon, 14 Sep 2015 23:04:52 +0000 (16:04 -0700)
commit5565b5cd7537e9360e6382507a45cf5e091a5108
tree0be72d315a75d786000892de8c41218b7afadee3
parentcda53c5dc2c6a2c01dfd5db278a7899dd868da7d
Fix IndexOutOfBoundsException while silent provisioning check

- If hostpot off, we receive result through HotspotOffReceiver.
  Sometimes, during provisioning, we're used to receive this.
  In this case, we don't care.
  After provisioning, we'll receive the intent again.

- In stress test,
  index is sometimes invalid, equals to mCurrentTethers.size().
  So, when provisioning, We check whether index is valid or not.

BUG=23528220
Change-Id: I70f35e045042c6c81b1db03e2a44cd41d3e7437f
src/com/android/settings/HotspotOffReceiver.java
src/com/android/settings/TetherService.java