title: SwipeToRefreshview swipe error
body: <p>I have a swipe to refresh view and a listview within in the swipe to refresh view</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.SwipeRefreshLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/refreshView"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
      &lt;android.support.constraint.ConstraintLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;TextView
              android:id="@+id/txtEmpty"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="No data available"
              android:layout_marginBottom="0dp"
              android:layout_marginLeft="0dp"
              android:textSize="20sp"
              android:visibility="gone"
              android:layout_marginRight="0dp"
              android:layout_marginTop="0dp"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;/TextView&gt;
  
          &lt;ListView
              android:id="@+id/ArrayList"
              android:layout_width="0dp"
              android:layout_height="0dp"
              android:layout_marginTop="0dp"
              app:layout_constraintTop_toTopOf="parent"
              android:layout_marginRight="0dp"
              app:layout_constraintRight_toRightOf="parent"
              android:layout_marginLeft="0dp"
              app:layout_constraintLeft_toLeftOf="parent"
              android:layout_marginBottom="0dp"
              app:layout_constraintBottom_toBottomOf="parent"&gt;
  
          &lt;/ListView&gt;
      &lt;/android.support.constraint.ConstraintLayout&gt;
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I can scroll down the list but when i want to go back up, the swipe to refresh kicks in and I got to be able to view the entire list, any recommendations ??</p>
  
  <p>and this is the implementation for the listener</p>
  
  <pre><code>srl = (SwipeRefreshLayout) view.findViewById(R.id.refreshView);
      srl.setOnRefreshListener(srfListener());
  </code></pre>
  
  <p>function for listener</p>
  
  <pre><code>protected SwipeRefreshLayout.OnRefreshListener srfListener() {
      return new SwipeRefreshLayout.OnRefreshListener() {
          @Override
          public void onRefresh() {
              update();
          }
      };
  }
  </code></pre>
  
  <p>and update function</p>
  
  <pre><code>@Override
  protected void update() {
      HomeActivity.getInstance().onResume();
      srl.setRefreshing(false);
  }
  </code></pre>