Example #1
0
 public void loadVotes() {
   if (loadVotersTask != null) loadVotersTask.onScreenLoad(this);
   else {
     if (voters != null) displayVoters();
     else loadVotersTask = (LoadRollTask) new LoadRollTask(this, id, "voters").execute("voters");
   }
 }
Example #2
0
 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();
   }
 }