diff --git a/app/src/main/java/com/luca0n/joguitos/pluck/fragments/TriviaQuestionFragment.java b/app/src/main/java/com/luca0n/joguitos/pluck/fragments/TriviaQuestionFragment.java index 0e53613..ba533b7 100644 --- a/app/src/main/java/com/luca0n/joguitos/pluck/fragments/TriviaQuestionFragment.java +++ b/app/src/main/java/com/luca0n/joguitos/pluck/fragments/TriviaQuestionFragment.java @@ -112,12 +112,12 @@ public class TriviaQuestionFragment extends Fragment { } } } else { - buttonAnswerTrue.setOnClickListener(listener); - buttonAnswerFalse.setOnClickListener(listener); + buttonAnswerTrue.setOnClickListener(listener); + buttonAnswerFalse.setOnClickListener(listener); - boolean correctAnswer = ((TriviaQuestionBoolean) question).checkAnswer("true"); - buttonAnswerCorrect = correctAnswer ? buttonAnswerTrue : buttonAnswerFalse; - } + boolean correctAnswer = ((TriviaQuestionBoolean) question).checkAnswer("true"); + buttonAnswerCorrect = correctAnswer ? buttonAnswerTrue : buttonAnswerFalse; + } } private void disableButtons() { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c04928c..4e175ab 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -91,7 +91,7 @@ Contact us at . Return To Menu Source This value specifies where the game should retrieve trivia data. By default, the game gathers trivia data from a server, but you can load trivia files with the "File" source option. - Notice: when using a server as the game source, this game connects to Open Trivia Database by default to gather trivia questions. Open Trivia Database is a collection of user-contributed questions that are licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC-BY-SA 4.0) license.\n\nYou can select a custom server in the game settings.\n\nIf you want to open a trivia file instead of getting trivia questions from a server, select "File" as the trivia game source above. + Notice: when using a server as the game source, this game connects to Open Trivia Database <https://opentdb.com> by default to gather trivia questions. Open Trivia Database is a collection of user-contributed questions that are licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC-BY-SA 4.0) license.\n\nYou can select a custom server in the game settings.\n\nIf you want to open a trivia file instead of getting trivia questions from a server, select "File" as the trivia game source above. Error