Skip to content

Commit

Permalink
Aggiunto TODO e sistemata score page
Browse files Browse the repository at this point in the history
  • Loading branch information
raffysommy committed Apr 3, 2015
1 parent 6b0aa9f commit 484b97d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/src/main/java/com/example/raffaele/testapp/Score_page.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_score_page);
Intent i = getIntent();
Bundle extras=i.getExtras();
this.correct = extras.getParcelable("Correct");
this.wrong=extras.getParcelable("Wrong");
//imposto valori di nome,cognome e scuola in view
((TextView)findViewById(R.id.CorrectC)).setText(correct.StringValue());
((TextView)findViewById(R.id.WrongC)).setText(wrong.StringValue());
((TextView) findViewById(R.id.AnsweredC)).setText(correct.StringValue());

if(this.correct!=null || this.correct!=null) {
//TODO: Qui si dovrebbe inserire il getscore totale se il campo passato non è null (ciru ce pienz tu :) )
this.correct = extras.getParcelable("Correct");
this.wrong = extras.getParcelable("Wrong");
//imposto valori di nome,cognome e scuola in view
((TextView) findViewById(R.id.CorrectC)).setText(correct.StringValue());
((TextView) findViewById(R.id.WrongC)).setText(wrong.StringValue());
((TextView) findViewById(R.id.AnsweredC)).setText(correct.StringValue());
}
}


Expand Down

0 comments on commit 484b97d

Please sign in to comment.