diff options
author | Keith Packard <keithp@keithp.com> | 2016-05-05 02:25:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-05-05 02:25:52 -0700 |
commit | e0081f7ba6fc9f1e4484d3e291fd30065ad5b620 (patch) | |
tree | fabb5b36eb80705e75b83a8ef148e27e9e7fdd8d /altoslib/AltosMapInterface.java | |
parent | 13179f614a99cad3016832ac1b365eaa4208c10f (diff) |
altoslib: Fix map preloading callbacks, run in separate thread
The map storage and tile callbacks were muddled together. Create
clearly separate states for map data and have status updates be
delivered when registering for new status events so that registration
is sufficient to track the state without an explicit call to get the
current state.
Run the map tile creation in a separate thread so that even checking
status of files on disk runs out of the UI thread.
These fixes serve to make the pacifier update more smoothly, and also
not over/under count tile loading so that the loading actually
completes when all of the tiles are loaded.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosMapInterface.java')
-rw-r--r-- | altoslib/AltosMapInterface.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosMapInterface.java b/altoslib/AltosMapInterface.java index 71936ad2..756a78f2 100644 --- a/altoslib/AltosMapInterface.java +++ b/altoslib/AltosMapInterface.java @@ -29,7 +29,7 @@ public interface AltosMapInterface { public abstract AltosMapMark new_mark(double lat, double lon, int state); - public abstract AltosMapTile new_tile(AltosMapTileListener listener, AltosLatLon upper_left, AltosLatLon center, int zoom, int maptype, int px_size); + public abstract AltosMapTile new_tile(AltosMapCache cache, AltosLatLon upper_left, AltosLatLon center, int zoom, int maptype, int px_size); public abstract int width(); |