mirror of
https://github.com/Skysamara/android-kotlin-fundamentals-apps.git
synced 2025-12-06 06:16:03 +00:00
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:
parent
19180a8e56
commit
9e27afc707
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user