* commit '0ef04dc7f231dc69ca89bd5be9e3a5166c270b3d': fix ArrayIndexOutOfBoundsException while starting WifiScannerScan
This commit is contained in:
@@ -4634,7 +4634,7 @@ public final class BatteryStatsImpl extends BatteryStats {
|
||||
@Override
|
||||
public void noteWifiBatchedScanStartedLocked(int csph, long elapsedRealtimeMs) {
|
||||
int bin = 0;
|
||||
while (csph > 8 && bin < NUM_WIFI_BATCHED_SCAN_BINS) {
|
||||
while (csph > 8 && bin < NUM_WIFI_BATCHED_SCAN_BINS-1) {
|
||||
csph = csph >> 3;
|
||||
bin++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user