Update lastAccessTime when calling getAcceleration() so we don't timeout.

This commit is contained in:
Bryce Curtis 2010-09-29 20:52:39 -05:00
parent c2240966ef
commit a772acbd89

View File

@ -118,6 +118,7 @@ public class AccelListener implements SensorEventListener, Plugin{
return new PluginResult(PluginResult.Status.IO_EXCEPTION, AccelListener.ERROR_FAILED_TO_START);
}
}
this.lastAccessTime = System.currentTimeMillis();
JSONObject r = new JSONObject();
r.put("x", this.x);
r.put("y", this.y);