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

Commit 1585cd7d authored by Rhed Jao's avatar Rhed Jao Committed by Android (Google) Code Review
Browse files

Merge "Fixed NPE in TouchDelegateInfo."

parents 0bf1666c 3a0a6ee1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -165,7 +165,11 @@ public class TouchDelegate {
    public TouchDelegateInfo getTouchDelegateInfo() {
        if (mTouchDelegateInfo == null) {
            final ArrayMap<Region, View> targetMap = new ArrayMap<>(1);
            targetMap.put(new Region(mBounds), mDelegateView);
            Rect bounds = mBounds;
            if (bounds == null) {
                bounds = new Rect();
            }
            targetMap.put(new Region(bounds), mDelegateView);
            mTouchDelegateInfo = new TouchDelegateInfo(targetMap);
        }
        return mTouchDelegateInfo;