public void loadVotes() { if (loadVotersTask != null) loadVotersTask.onScreenLoad(this); else { if (voters != null) displayVoters(); else loadVotersTask = (LoadRollTask) new LoadRollTask(this, id, "voters").execute("voters"); } }
public void onLoadRoll(String tag, Roll roll) { if (tag.equals("basic")) { this.loadRollTask = null; this.roll = roll; displayRoll(); } else if (tag.equals("voters")) { this.loadVotersTask = null; this.voters = roll.voters; displayVoters(); } }