diff options
author | Android Dialer <noreply@google.com> | 2017-10-17 01:36:29 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-17 01:36:29 +0000 |
commit | c6f46340fb800ac1e972bfffb224a4afdb1c82ce (patch) | |
tree | 02ae217584fca494f5c4795038b2c72ed81a551b /java/com/android/dialer/contactsfragment/ContactsFragment.java | |
parent | 2eba54e028fc387ddc969c70c7b9f0dfd9c906b6 (diff) | |
parent | 5a6cb962ae30ad9e308b5bcc00920daf84618808 (diff) |
Merge changes Iab543850,I305f8a0e
am: 5a6cb962ae
Change-Id: I82c93bbdcf35d08495987aec98a01cfea62c3f7c
Diffstat (limited to 'java/com/android/dialer/contactsfragment/ContactsFragment.java')
-rw-r--r-- | java/com/android/dialer/contactsfragment/ContactsFragment.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/com/android/dialer/contactsfragment/ContactsFragment.java b/java/com/android/dialer/contactsfragment/ContactsFragment.java index 759897f91..a8daa546a 100644 --- a/java/com/android/dialer/contactsfragment/ContactsFragment.java +++ b/java/com/android/dialer/contactsfragment/ContactsFragment.java @@ -93,7 +93,7 @@ public class ContactsFragment extends Fragment /** Listener for contacts list scroll state. */ public interface OnContactsListScrolledListener { - void onContactsListScrolled(int scrollState); + void onContactsListScrolled(boolean isDragging); } /** @@ -248,7 +248,9 @@ public class ContactsFragment extends Fragment String anchoredHeaderString = adapter.getHeaderString(firstCompletelyVisible); FragmentUtils.getParentUnsafe(this, OnContactsListScrolledListener.class) - .onContactsListScrolled(recyclerView.getScrollState()); + .onContactsListScrolled( + recyclerView.getScrollState() == RecyclerView.SCROLL_STATE_DRAGGING + || fastScroller.isDragStarted()); // If the user swipes to the top of the list very quickly, there is some strange behavior // between this method updating headers and adapter#onBindViewHolder updating headers. |