title: ListView doesn't refresh when last item is deleted
body: <p>I have problem in my app. I have CursorLoader in conjcution with CursorAdapter. Everything works as expected, except one condition: when I have some items on ListView and I swap cursor in adapter for cursor that is empty, visible items aren't deleted (only dividers between rows disappear). When I touch ListView it disappears instantly.</p>
  
  <p>Here is the situation. I have some non empty cursor:
  <img src="https://i.stack.imgur.com/VhvEb.png" alt="enter image description here"></p>
  
  <p>Then I swap for cursor that has no results:
  <img src="https://i.stack.imgur.com/uT6pP.png" alt="enter image description here"></p>
  
  <p>As you can see only dividers disappeard. After touching the screen both items disappear.</p>
  
  <p>Here is my function that swaps cursor:</p>
  
  <pre><code>public void onLoadFinished(Loader&lt;Cursor&gt; loader, Cursor cursor)
  {
      ratesAdapter.swapCursor(cursor);
  }
  </code></pre>
  
  <p>Fragment source: <a href="http://pastebin.com/N2YGzgRj" rel="nofollow noreferrer">http://pastebin.com/N2YGzgRj</a></p>
  
  <p>Please help me to solve this problem.</p>