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

Commit d0f987ee authored by Josh Tsuji's avatar Josh Tsuji Committed by Android (Google) Code Review
Browse files

Merge "Use position in window for volume touchable insets." into sc-dev

parents 1a180247 5b10f715
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -301,11 +301,13 @@ public class VolumeDialogImpl implements VolumeDialog,
        // the volume dialog container itself, so this is fine.
        for (int i = 0; i < mDialogView.getChildCount(); i++) {
            final View view = mDialogView.getChildAt(i);
            final int[] locInWindow = new int[2];
            view.getLocationInWindow(locInWindow);
            mTouchableRegion.op(
                    view.getLeft(),
                    view.getTop(),
                    view.getRight(),
                    view.getBottom(),
                    locInWindow[0],
                    locInWindow[1],
                    locInWindow[0] + view.getWidth(),
                    locInWindow[1] + view.getHeight(),
                    Region.Op.UNION);
        }