Set elevation when the first item is not completely visible

* This CL fixes a bug where elevation is not seen in group view when the
  first item is not completely visible.
* The bug is only seen in group view and not in account view, because
  there is a "search_header" in account view. The "search_header" is an
  item in list view but is not a visible contact. So the first contact
  in account view is actually the second item in the list view.

Bug 30358448

Change-Id: I04b9d7f54a154f8aea9515f376886abe13781df0
diff --git a/src/com/android/contacts/list/MultiSelectContactsListFragment.java b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
index 8b55047..f5c6d34 100644
--- a/src/com/android/contacts/list/MultiSelectContactsListFragment.java
+++ b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
@@ -330,7 +330,13 @@
         if (accountFilterContainer == null) {
             return;
         }
-        if (firstVisibleItem == 0) {
+
+        int firstCompletelyVisibleItem = firstVisibleItem;
+        if (view != null && view.getChildAt(0) != null && view.getChildAt(0).getTop() < 0) {
+            firstCompletelyVisibleItem++;
+        }
+
+        if (firstCompletelyVisibleItem == 0) {
             ViewCompat.setElevation(accountFilterContainer, 0);
         } else {
             ViewCompat.setElevation(accountFilterContainer,