title: Android enable/disable spinner touch listener at condition
body: <p>I have an activity with a Spinner (with his own adapter) and another Adapter that manages the recycler view with its list . I'm trying to implement the following logic : when the list of the recycler is empty   the spinner should be enabled , otherwise it should be disabled until the list is empty again :</p>
  <pre><code>  sGames.setOnTouchListener(new View.OnTouchListener() {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              if (pokemonCardsGridAdapter.getItemCount() == 0) {
                  v.performClick();
                  v.setEnabled(true);
              } else {
                  v.setEnabled(false);
                  Toast.makeText(PokemonTeambuilderEditorActivity.this, &quot;The list is full&quot;, Toast.LENGTH_SHORT).show();
              }
              return false;
          }
      });
  </code></pre>
  <p>However , this only works the first time , once the spinner gets disabled , it never receive any touch events again . How can I fix this?</p>