am 9d981343: Merge change 2732 into donut
Merge commit '9d981343c9d187b4746ed1f3658224d9551d51c8' * commit '9d981343c9d187b4746ed1f3658224d9551d51c8': Fix for #1878497.
This commit is contained in:
committed by
The Android Open Source Project
commit
9b8c5b6974
@@ -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,12 +83,7 @@ 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);
|
||||
}
|
||||
mBoundingBox.union(stroke.boundingBox);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user