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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user