title: Uncheck item when it is clicked
body: <p>I have a <code>ListActivty</code> with listview choice mode set to <code>CHOICE_MODE_SINGLE</code> The item layout contains only a <code>CheckedTextView</code>. By default when the activity is shown all items are unchecked. If the user clicks on an item it is automatically getting checked and check-mark is shown. Clicking another item unchecks the previous item. All this is working out of the box.</p>
  
  <p>What I want to do is to uncheck an item of the user clicks on an already checked item. I have overridden <code>onListItemClick</code> method to detect if the item is already checked and uncheck it like this:</p>
  
  <pre><code>@Override
  protected void onListItemClick(ListView listView, View view, int position, long id) {
      CheckedTextView checkedTextView = (CheckedTextView) view;
      if (checkedTextView.isChecked()) {
          listView.setItemChecked(position, false);
      }
  }
  </code></pre>
  
  <p>The problem is that on Android 4.4 <code>checkedTextView.isChecked()</code> always returns true: if I click on an unchecked item it returns true and clicking on checked item returns true as well. I have tried <code>listview.isItemChecked(position)</code> but it works the same way.</p>
  
  <p>Is there any other way to detect that I have clicked on a checked item so that I can uncheck it?</p>