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/AltosMapTileListener.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/AltosMapTileListener.java')
-rw-r--r-- | altoslib/AltosMapTileListener.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/altoslib/AltosMapTileListener.java b/altoslib/AltosMapTileListener.java index 6ab03638..6d78b205 100644 --- a/altoslib/AltosMapTileListener.java +++ b/altoslib/AltosMapTileListener.java @@ -19,6 +19,4 @@ package org.altusmetrum.altoslib_10; public interface AltosMapTileListener { abstract public void notify_tile(AltosMapTile tile, int status); - - abstract public AltosMapCache cache(); } |