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

Commit 9b8c5b69 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 9d981343: Merge change 2732 into donut

Merge commit '9d981343'

* commit '9d981343':
  Fix for #1878497.
parents 8c5e96fb 9d981343
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ public class Gesture implements Parcelable {

    private static int sGestureCount = 0;

    private RectF mBoundingBox;
    private final RectF mBoundingBox = new RectF();

    // the same as its instance ID
    private long mGestureID;
@@ -83,13 +83,8 @@ public class Gesture implements Parcelable {
     */
    public void addStroke(GestureStroke stroke) {
        mStrokes.add(stroke);

        if (mBoundingBox == null) {
            mBoundingBox = new RectF(stroke.boundingBox);
        } else {
        mBoundingBox.union(stroke.boundingBox);
    }
    }

    /**
     * Get the total length of the gesture. When there are multiple strokes in