commit | 832d88142cb73249d27481517dff5f05c337ab97 | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Wed Dec 15 16:06:04 2010 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Dec 15 16:06:04 2010 -0800 |
tree | 901e33d3747feb4c78ce8ee77def07b767558bde | |
parent | 24c30d2b9c1a2f61fc39d82e95b5ce7637686ebb [diff] | |
parent | ca0a6010b56801ff603f3c7c08327e30f90bfac0 [diff] |
Merge "Fixing initialization of requested scroll position"
diff --git a/src/com/android/contacts/list/ContactBrowseListFragment.java b/src/com/android/contacts/list/ContactBrowseListFragment.java index 295f172..8b9e10e 100644 --- a/src/com/android/contacts/list/ContactBrowseListFragment.java +++ b/src/com/android/contacts/list/ContactBrowseListFragment.java
@@ -399,7 +399,7 @@ requestSelectionToScreen(); } - adapter.notifyDataSetChanged(); + getListView().invalidate(); if (mListener != null) { mListener.onSelectionChange();
diff --git a/src/com/android/contacts/widget/AutoScrollListView.java b/src/com/android/contacts/widget/AutoScrollListView.java index 2f85329..e9c1c42 100644 --- a/src/com/android/contacts/widget/AutoScrollListView.java +++ b/src/com/android/contacts/widget/AutoScrollListView.java
@@ -32,7 +32,7 @@ */ private static final float PREFERRED_SELECTION_OFFSET_FROM_TOP = 0.33f; - private int mRequestedScrollPosition; + private int mRequestedScrollPosition = -1; private boolean mSmoothScrollRequested; public AutoScrollListView(Context context) {