Android Kotlin Fundamentals 03.2: Define navigation paths

10. Task: Add the navigation drawer
Step 5: Display the navigation drawer from the drawer button
This commit is contained in:
skysamara 2020-03-04 17:50:24 +03:00
parent 19180a8e56
commit 9e27afc707

View File

@ -86,6 +86,7 @@ class GameFragment : Fragment() {
if (-1 != checkedId) {
var answerIndex = 0
when (checkedId) {
// Почему три, когда кнопок четыре?
R.id.secondAnswerRadioButton -> answerIndex = 1
R.id.thirdAnswerRadioButton -> answerIndex = 2
R.id.fourthAnswerRadioButton -> answerIndex = 3