diff --git a/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java b/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java index 3300e7fea..f55272eda 100644 --- a/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java +++ b/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java @@ -19,6 +19,7 @@ package com.google.zxing.multi.qrcode.detector; import com.google.zxing.DecodeHintType; import com.google.zxing.NotFoundException; import com.google.zxing.ReaderException; +import com.google.zxing.ResultPointCallback; import com.google.zxing.common.BitMatrix; import com.google.zxing.common.DetectorResult; import com.google.zxing.qrcode.detector.Detector; @@ -45,7 +46,9 @@ public final class MultiDetector extends Detector { public DetectorResult[] detectMulti(Map hints) throws NotFoundException { BitMatrix image = getImage(); - MultiFinderPatternFinder finder = new MultiFinderPatternFinder(image); + ResultPointCallback resultPointCallback = + hints == null ? null : (ResultPointCallback) hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK); + MultiFinderPatternFinder finder = new MultiFinderPatternFinder(image, resultPointCallback); FinderPatternInfo[] infos = finder.findMulti(hints); if (infos.length == 0) {