title: Bottomnavigationbar cant setcheckable to false but true works fine
body: <p>I have two items, if i alternate between them it will uncheck the other item. But if i click once on a item i setChecked(true); but when i click again i want it to setChecked(false); but that doesnt uncheck the item. ive tried setCheckable(false); and that unchecks the item but then i cant check it again even if i write setCheckable(true) before i setChecked(true).</p>
  <p>So the code works for one alteration then since its always checked after that the if statement doesnt work anymore. I can add more code if needed, but feels like im missing some small part.</p>
  <p>This is the code</p>
  <pre><code>        bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
              @Override
              public boolean onNavigationItemSelected(@NonNull MenuItem item) {
                  switch (item.getItemId()){
                      case R.id.page_1:
  
                          item.setChecked(true);
                          break;
                      case R.id.page_2:
                          if(item.isChecked()) {
                              item.setChecked(false);
                              brushComponent_layout.setVisibility(View.INVISIBLE);
                          }
                          else {
                              item.setChecked(true);
                              brushComponent_layout.setVisibility(View.VISIBLE);
                          }
                          break;
                      default:
                          break;
                  }
                  return false;
              }
          });
  
  
  </code></pre>