Skip to content

Commit

Permalink
Moved code enabling the textbox
Browse files Browse the repository at this point in the history
Moved the re-enabling of the textbox to the resetQuiz method, rather
than have it redundantly run every time another question is called. This
may have to be reverted if I ever find a way to disable the textbox
without closing the touch keyboard.
  • Loading branch information
theblackwidower committed Jan 23, 2018
1 parent 8e816db commit 285fee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/noprestige/kanaquiz/MainQuiz.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ private void resetQuiz()
questionBank = Hiragana.QUESTIONS.getQuestionBank();
questionBank.addQuestions(Katakana.QUESTIONS.getQuestionBank());

txtAnswer.setEnabled(true);

//TODO: Fix spacing when txtAnswer is rendered invisible
if (OptionsControl.getBoolean(R.string.prefid_multiple_choice))
{
Expand All @@ -116,7 +118,6 @@ private void nextQuestion()
{
questionBank.newQuestion();
lblDisplayKana.setText(questionBank.getCurrentKana());
txtAnswer.setEnabled(true);
isRetrying = false;
if (OptionsControl.getBoolean(R.string.prefid_multiple_choice))
btnMultipleChoice.setChoices(questionBank.getPossibleAnswers());
Expand Down

0 comments on commit 285fee4

Please sign in to comment.