title: onMenuItemClick switch case selecting multiple cases
body: <p>for some reason my switch case is selecting multiple cases for some reason.
  Lets say I click sort -&gt; by name, it selects sort -&gt; by name, sort -&gt; by points and statistics (Shown below).
  It's not the first time it's happening, it happened in another part of the code as well, and I simple switched it to &quot;if's&quot; and forgot about it. Why would he select multiple values upon click? why the random value?
  <a href="https://i.stack.imgur.com/K1W4a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K1W4a.png" alt="enter image description here" /></a>
  Switch Case function:</p>
  <pre><code>    public boolean onMenuItemClick(MenuItem item) {
      switch (item.getItemId()) {
          case R.id.optionsMenu_saveListDevice:
              Toast.makeText(this, &quot;saveDevice&quot;, Toast.LENGTH_SHORT).show();
          case R.id.optionsMenu_saveListServer:
              Toast.makeText(this, &quot;saveServer&quot;, Toast.LENGTH_SHORT).show();
          case R.id.optionsMenu_about:
              Toast.makeText(this, &quot;about&quot;, Toast.LENGTH_SHORT).show();
          case R.id.optionsMenu_sortByGrade:
              Toast.makeText(this, &quot;sortGrade&quot;, Toast.LENGTH_SHORT).show();
          case R.id.optionsMenu_sortByName:
              Toast.makeText(this, &quot;sortName&quot;, Toast.LENGTH_SHORT).show();
          case R.id.optionsMenu_sortByPoints:
              Toast.makeText(this, &quot;sortPoints&quot;, Toast.LENGTH_SHORT).show();
          case R.id.optionsMenu_statistics:
              Toast.makeText(this, &quot;statistics&quot;, Toast.LENGTH_SHORT).show();
          default:
              return false;
      }
  </code></pre>
  <p>Show Popup:</p>
  <pre><code>    public void showPopup(View v) {
      PopupMenu popup = new PopupMenu(this, v);
      popup.setOnMenuItemClickListener((PopupMenu.OnMenuItemClickListener) this);
      popup.inflate(R.menu.popup_menu);
      popup.show();
  }
  </code></pre>
  <p>Menu:</p>
  <pre><code>&lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  &lt;item
      android:id=&quot;@+id/optionsMenu_sort&quot;
      android:title=&quot;Sort&quot;&gt;
      &lt;menu&gt;
          &lt;item
              android:id=&quot;@+id/optionsMenu_sortByName&quot;
              android:title=&quot;By name&quot; /&gt;
          &lt;item
              android:id=&quot;@+id/optionsMenu_sortByGrade&quot;
              android:title=&quot;By grade&quot; /&gt;
          &lt;item
              android:id=&quot;@+id/optionsMenu_sortByPoints&quot;
              android:title=&quot;By points&quot; /&gt;
      &lt;/menu&gt;
  &lt;/item&gt;
  &lt;item
      android:id=&quot;@+id/optionsMenu_save&quot;
      android:title=&quot;Save&quot;&gt;
      &lt;menu&gt;
          &lt;item
              android:id=&quot;@+id/optionsMenu_saveListDevice&quot;
              android:title=&quot;On device&quot; /&gt;
          &lt;item
              android:id=&quot;@+id/optionsMenu_saveListServer&quot;
              android:title=&quot;On server&quot; /&gt;
      &lt;/menu&gt;
  &lt;/item&gt;
  
  &lt;item
      android:id=&quot;@+id/optionsMenu_statistics&quot;
      android:title=&quot;Statistics&quot; /&gt;
  &lt;item
      android:id=&quot;@+id/optionsMenu_about&quot;
      android:title=&quot;About&quot; /&gt;
  </code></pre>