Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 58e37ea

Browse files
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /