Skip to content

Commit 58e37ea

Browse files
committed
Minor Nit. Happy 2018 IO
1 parent e10d6af commit 58e37ea

File tree

1 file changed

+1
-1
lines changed
  • visionSamples/ocr-codelab/ocr-reader-complete/app/src/main/java/com/google/android/gms/samples/vision/ocrreader

1 file changed

+1
-1
lines changed

visionSamples/ocr-codelab/ocr-reader-complete/app/src/main/java/com/google/android/gms/samples/vision/ocrreader/OcrGraphic.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public boolean contains(float x, float y) {
8686
}
8787
RectF rect = new RectF(textBlock.getBoundingBox());
8888
rect = translateRect(rect);
89-
return (rect.left < x && rect.right > x && rect.top < y && rect.bottom > y);
89+
return rect.contains(x, y);
9090
}
9191

9292
/**

0 commit comments

Comments
 (0)