am c0ce7eeb: Add a minimum size for the event pools.

* commit 'c0ce7eeb481540e24bc45f52e604df923c507043':
  Add a minimum size for the event pools.
This commit is contained in:
Justin Koh
2013-03-13 01:49:48 +00:00
committed by Android Git Automerger

View File

@@ -82,9 +82,9 @@ public class SystemSensorManager extends SensorManager {
} while (i>0);
sSensorEventPool = new Pools.SynchronizedPool<SensorEvent>(
sFullSensorsList.size()*2);
Math.max(sFullSensorsList.size()*2, 1));
sTriggerEventPool = new Pools.SynchronizedPool<TriggerEvent>(
sFullSensorsList.size()*2);
Math.max(sFullSensorsList.size()*2, 1));
}
}
}