OSDN Git Service

Fix bug 2110011
authorEvan Millar <emillar@google.com>
Thu, 10 Sep 2009 19:30:03 +0000 (12:30 -0700)
committerEvan Millar <emillar@google.com>
Thu, 10 Sep 2009 19:30:49 +0000 (12:30 -0700)
Change-Id: Ib4aee767d11a8ae71d55815908e89c1097041f60

src/com/android/contacts/ContactsListActivity.java

index 7373ab6..b788b3d 100644 (file)
@@ -318,6 +318,8 @@ public final class ContactsListActivity extends ListActivity implements
 
     private String mShortcutAction;
 
+    private int mScrollState;
+
     /**
      * Internal query type when in mode {@link #MODE_QUERY_PICK_TO_VIEW}.
      */
@@ -636,6 +638,7 @@ public final class ContactsListActivity extends ListActivity implements
     protected void onResume() {
         super.onResume();
 
+        mScrollState = OnScrollListener.SCROLL_STATE_IDLE;
         boolean runQuery = true;
         Activity parent = getParent();
 
@@ -1823,7 +1826,6 @@ public final class ContactsListActivity extends ListActivity implements
         private Cursor mSuggestionsCursor;
         private int mSuggestionsCursorCount;
         private ImageFetchHandler mHandler;
-        private int mScrollState = OnScrollListener.SCROLL_STATE_IDLE;
         private static final int FETCH_IMAGE_MSG = 1;
 
         public ContactItemListAdapter(Context context) {