Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2858abfb authored by Wenyi Wang's avatar Wenyi Wang Committed by android-build-merger
Browse files

Set elevation when the first item is not completely visible

am: 141b837b

Change-Id: I3e3094eaf99578630cd64a0eecfe3b9c37034aa0
parents 6146c5f3 141b837b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -330,7 +330,13 @@ public abstract class MultiSelectContactsListFragment<T extends MultiSelectEntry
        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,