title: Preventing a second click on RadioButton if it was already checked
body: <p>I am creating a small quiz app. As the question suggests, how do I prevent a second click without disabling the button? When I click twice on a radio button it adds 2 points instead of 1. Very much appreciated!</p>
  
  <p>Here's a picture of my app:</p>
  
  <p><a href="https://i.stack.imgur.com/N9Qtx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N9Qtx.png" alt="enter image description here"></a></p>
  
  <pre><code>public void question1 (View view) {
      boolean checked = ((RadioButton) view).isChecked();
  
      switch (view.getId()) {
          case R.id.question1_9:
              if (checked) {
                  scoreForRadioButtons += 1;
              }
  
          case R.id.question1_8:
              if (checked) {
                  break;
              }
          case R.id.question1_7:
              if (checked) {
                  break;
              }
      }
  }
  </code></pre>
  
  <hr>
  
  <p>SOLVED</p>
  
  <p>This is what I did: just add 'break;' on the correct answer.</p>
  
  <pre><code>public void question1 (View view) {
      boolean checked = ((RadioButton) view).isChecked();
  
      switch (view.getId()) {
          case R.id.question1_9:
              if (checked) {
                  pointForQ1 = 1;
                  break;
              }
          case R.id.question1_8:
              if (checked) {
                  pointForQ1 = 0;
              }
          case R.id.question1_7:
              if (checked) {
                  pointForQ1 = 0;
              }
      }
  }
  </code></pre>