title: SwipeRefreshLayout refresh animation doesn't stop
body: <p>I've implemented a fragment which has a SwipeRefreshLayout as content view. Refresh animation is triggered at onRefresh but it never stops even if setRefreshing is set to false after retrieving the data from server.</p>
  
  <pre><code>    @Override
  public void onRefresh() {
      handler.post(refreshing);
  }
  
  
  private final Runnable refreshing = new Runnable(){
      public void run(){
          try {
              if(isRefreshing()){
                  handler.postDelayed(this, 1000);
              }else{
                  swipeLayout.setRefreshing(false);
                  mainActivity.forceUpdate();
                  setLayout();
              }
          }
          catch (Exception e) {
              e.printStackTrace();
          }
      }
  };
  
  private boolean isRefreshing(){
      return swipeLayout.isRefreshing();
  }
  </code></pre>