docs + cleanups

This commit is contained in:
Hannes Janetzek
2013-02-11 13:49:09 +01:00
parent c1643850ce
commit 0609639ef3
5 changed files with 33 additions and 18 deletions

View File

@@ -34,6 +34,13 @@ public class JobTile extends Tile {
state = STATE_NONE;
}
/**
* @return true if tile is loading, has new data or is ready for rendering
* */
public boolean isActive() {
return state > STATE_NONE && state < STATE_ERROR;
}
public void setLoading() {
if (state != STATE_NONE)
Log.d(TAG, "wrong state: " + state);