Shortened the animation duration

Bug:5982894
Change-Id: Iae36b379d08a0e7a140953b77711b822f66d4965
diff --git a/src/com/android/contacts/widget/PinnedHeaderListAdapter.java b/src/com/android/contacts/widget/PinnedHeaderListAdapter.java
index a4d375e..a39cfcc 100644
--- a/src/com/android/contacts/widget/PinnedHeaderListAdapter.java
+++ b/src/com/android/contacts/widget/PinnedHeaderListAdapter.java
@@ -48,6 +48,7 @@
         this.mPinnedPartitionHeadersEnabled = flag;
     }
 
+    @Override
     public int getPinnedHeaderCount() {
         if (mPinnedPartitionHeadersEnabled) {
             return getPartitionCount();
@@ -65,6 +66,7 @@
      * The default implementation creates the same type of view as a normal
      * partition header.
      */
+    @Override
     public View getPinnedHeaderView(int partition, View convertView, ViewGroup parent) {
         if (hasHeader(partition)) {
             View view = null;
@@ -87,6 +89,7 @@
         }
     }
 
+    @Override
     public void configurePinnedHeaders(PinnedHeaderListView listView) {
         if (!mPinnedPartitionHeadersEnabled) {
             return;
@@ -161,6 +164,7 @@
         }
     }
 
+    @Override
     public int getScrollPositionForHeader(int viewIndex) {
         return getPositionForPartition(viewIndex);
     }
diff --git a/src/com/android/contacts/widget/PinnedHeaderListView.java b/src/com/android/contacts/widget/PinnedHeaderListView.java
index cef7203..1503879 100644
--- a/src/com/android/contacts/widget/PinnedHeaderListView.java
+++ b/src/com/android/contacts/widget/PinnedHeaderListView.java
@@ -74,7 +74,7 @@
     private static final int BOTTOM = 1;
     private static final int FADING = 2;
 
-    private static final int DEFAULT_ANIMATION_DURATION = 100;
+    private static final int DEFAULT_ANIMATION_DURATION = 20;
 
     private static final class PinnedHeader {
         View view;
@@ -149,6 +149,7 @@
         super.setOnItemSelectedListener(this);
     }
 
+    @Override
     public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
             int totalItemCount) {
         if (mAdapter != null) {
@@ -187,6 +188,7 @@
         return mSize > 0 ? 0 : super.getTopFadingEdgeStrength();
     }
 
+    @Override
     public void onScrollStateChanged(AbsListView view, int scrollState) {
         mScrollState = scrollState;
         if (mOnScrollListener != null) {
@@ -198,13 +200,13 @@
      * Ensures that the selected item is positioned below the top-pinned headers
      * and above the bottom-pinned ones.
      */
+    @Override
     public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
         int height = getHeight();
 
         int windowTop = 0;
         int windowBottom = height;
 
-        int prevHeaderBottom = 0;
         for (int i = 0; i < mSize; i++) {
             PinnedHeader header = mHeaders[i];
             if (header.visible) {
@@ -231,6 +233,7 @@
         }
     }
 
+    @Override
     public void onNothingSelected(AdapterView<?> parent) {
         if (mOnItemSelectedListener != null) {
             mOnItemSelectedListener.onNothingSelected(parent);