ROGUE-JCTD / Arbiter-Android

Arbiter is a mobile app that lets you build a map to use for situational awareness and geospatial data collection using a smartphone or tablet
MIT License
26 stars 24 forks source link

Sporadic app lock up when syncing #111

Closed smesdaghi closed 9 years ago

smesdaghi commented 9 years ago

Arbiter locks up when syncing some layers sometimes on a good connection network.

smesdaghi commented 9 years ago

Created a project with od3 layers and noticed app locks up. tried various layers with media sync enabled/disabled. Turned out to be if the first feature on the layer happens to have a null datetime attribute, the DownloadedFeaturesHandler.checkTimeDifference method was not catching a a couple of cases resulting in sync not proceeding. We need a better solution that the current implementation for what looks like time difference between server and device computation that doesn't rely on a wfs check for first feature on layer. pushed the patch for now.