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

Commit fa73c021 authored by Jon Miranda's avatar Jon Miranda
Browse files

Set elevation of popup and arrow to match. This ensures no shadow overlap.

Bug: 191823198
Test: long press app where arrow is on top and bottom in:
      workspace, all apps, and search UI

Change-Id: Icc4ac259607175d5e12447a844ba166ba28b74af
parent bf60673b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -511,8 +511,8 @@ public abstract class ArrowPopup<T extends StatefulActivity<LauncherState>>
                    mArrowOffsetHorizontal, -mArrowOffsetVertical,
                    !mIsAboveIcon, mIsLeftAligned,
                    mArrowColor));
            // TODO: Remove elevation when arrow is above as it casts a shadow on the container
            mArrow.setElevation(mIsAboveIcon ? mElevation : 0);
            setElevation(mElevation);
            mArrow.setElevation(mElevation);
        }
    }