Commit 723fb62d authored by Ethan Liang's avatar Ethan Liang
Browse files

chalk quiz: now unable to press submit without selection

parent b7cbf841
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -104,10 +104,12 @@ public class ChalkActivity extends AppCompatActivity implements View.OnClickList
                        .show();
            }
            else if(selectedAnswer.equals(ChalkQuestionAnswer.correctAnswers[currentQuestionIndex])){
                selectedAnswer = "";
                chalkscore++;
                currentQuestionIndex++;
                loadNewQuestion();
            } else {
                selectedAnswer = "";
                totalWrong++;
                Intent spawnGame = new Intent(getApplicationContext(), ChalkGameActivity.class);
                spawnGame.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);