commit | 074ada153664cccc4b4baca7b43b0d7fa1764e66 | [log] [tgz] |
---|---|---|
author | Wenyi Wang <wenyiw@google.com> | Thu Jun 30 14:43:33 2016 -0700 |
committer | Wenyi Wang <wenyiw@google.com> | Thu Jun 30 14:43:33 2016 -0700 |
tree | a245d5b82e2e34d0a191063f0620e03883f9b650 | |
parent | 7d6b8087ea7dcf3bb48f007b9cae73e4598b4095 [diff] |
Reset scroll position when account filter is changed Bug 29618694 Change-Id: Ie0b3b813b439726dc71da85ed01e4bf298bdce07
diff --git a/src/com/android/contacts/activities/PeopleActivity.java b/src/com/android/contacts/activities/PeopleActivity.java index a0ceed0..7b5f3e6 100644 --- a/src/com/android/contacts/activities/PeopleActivity.java +++ b/src/com/android/contacts/activities/PeopleActivity.java
@@ -518,6 +518,9 @@ return; } + // Scroll to top after filter is changed. + mAllFragment.getListView().setSelectionAfterHeaderView(); + setFilterAndUpdateTitle(mContactListFilterController.getFilter()); showFabWithAnimation(shouldShowFabForAccount());