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

Commit 72f4e8f4 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 33f1d078: Merge "Fix 3338368: Fix bounds calculation for recent apps view" into honeycomb

* commit '33f1d078':
  Fix 3338368: Fix bounds calculation for recent apps view
parents eb84ac4d 33f1d078
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -98,10 +98,12 @@ public class RecentAppsPanel extends RelativeLayout implements StatusBarPanel, O
    };

    public boolean isInContentArea(int x, int y) {
        final int l = mRecentsContainer.getPaddingLeft();
        final int r = mRecentsContainer.getWidth() - mRecentsContainer.getPaddingRight();
        final int t = mRecentsContainer.getPaddingTop();
        final int b = mRecentsContainer.getHeight() - mRecentsContainer.getPaddingBottom();
        // use mRecentsContainer's exact bounds to determine horizontal position
        final int l = mRecentsContainer.getLeft();
        final int r = mRecentsContainer.getRight();
        // use surrounding mRecentsGlowView's position in parent determine vertical bounds
        final int t = mRecentsGlowView.getTop();
        final int b = mRecentsGlowView.getBottom();
        return x >= l && x < r && y >= t && y < b;
    }