react-native-rectangle-doc-scanner 3.176.0 → 3.177.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -437,6 +437,18 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
|
|
|
437
437
|
Log.d(TAG, "[START_CAMERA] isTorchEnabled: $isTorchEnabled")
|
|
438
438
|
Log.d(TAG, "[START_CAMERA] CameraController: $cameraController")
|
|
439
439
|
|
|
440
|
+
// Force PreviewView visibility and layout
|
|
441
|
+
previewView.post {
|
|
442
|
+
Log.d(TAG, "[START_CAMERA] Forcing PreviewView visibility and layout...")
|
|
443
|
+
previewView.visibility = View.VISIBLE
|
|
444
|
+
previewView.alpha = 1.0f
|
|
445
|
+
previewView.requestLayout()
|
|
446
|
+
previewView.invalidate()
|
|
447
|
+
Log.d(TAG, "[START_CAMERA] PreviewView state - visible: ${previewView.visibility == View.VISIBLE}, alpha: ${previewView.alpha}")
|
|
448
|
+
Log.d(TAG, "[START_CAMERA] PreviewView state - width: ${previewView.width}, height: ${previewView.height}")
|
|
449
|
+
Log.d(TAG, "[START_CAMERA] PreviewView state - hasWindowFocus: ${previewView.hasWindowFocus()}")
|
|
450
|
+
}
|
|
451
|
+
|
|
440
452
|
lastDetectionTimestamp = 0L
|
|
441
453
|
cameraController?.onFrameAnalyzed = { rectangle, imageWidth, imageHeight ->
|
|
442
454
|
handleDetectionResult(rectangle, imageWidth, imageHeight)
|
package/package.json
CHANGED