Skip to content

Commit

Permalink
[#40] Removing console.log + fixing a bug when session is recovered o…
Browse files Browse the repository at this point in the history
…r created
  • Loading branch information
chrqls committed Nov 15, 2013
1 parent 8c05fbd commit 4e6fa88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

public class SmilePlugServerManager extends AbstractBaseManager {

// XXX TODO: Add arguments to take Teacher Name, Session Name, and Group Name
public void startMakingQuestions(String ip, Context context) throws NetworkErrorException {
String url = SmilePlugUtil.createUrl(ip, SmilePlugUtil.START_MAKING_QUESTIONS_URL);
put(ip, context, url, "{}");
Expand Down Expand Up @@ -86,6 +85,7 @@ public void resetGame(String ip, Context context) throws NetworkErrorException {

}

// XXX TODO: Add arguments to take Teacher Name, Session Name, and Group Name
public void createSession(String ip, String teacherName, String sessionTitle, String groupName, Context context) throws NetworkErrorException {

String url = SmilePlugUtil.createUrl(ip, SmilePlugUtil.CREATE_SESSION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ private class StartButtonListener implements OnClickListener {
@Override
public void onClick(View v) {

System.out.println("READY ???");
System.out.println(">>>>>>>>>>>> status="+status);
System.out.println("JOB IS DONE ("+status.equals("")+")");

if (status != null && !status.equals("")) {
if (status != null && !status.equals("") && !status.equals("RESET")) {

// AlertDialog.Builder builder = new AlertDialog.Builder(ChooseActivityFlowDialog.this);
// builder.setMessage(R.string.game_running).setCancelable(false).setNeutralButton("Ok", new DialogInterface.OnClickListener() {
Expand All @@ -117,7 +113,6 @@ public void onClick(View v) {
ActivityUtil.showLongToast(ChooseActivityFlowDialog.this, R.string.recovering);
// AlertDialog alert = builder.create();
// alert.show();

} else {
new LoadTask(ChooseActivityFlowDialog.this).execute();
ActivityUtil.showLongToast(ChooseActivityFlowDialog.this, R.string.starting);
Expand Down

0 comments on commit 4e6fa88

Please sign in to comment.