react-native-rectangle-doc-scanner 3.171.0 → 3.172.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.
|
@@ -77,13 +77,12 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
|
|
|
77
77
|
previewView = PreviewView(context).apply {
|
|
78
78
|
layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
|
|
79
79
|
scaleType = PreviewView.ScaleType.FILL_CENTER
|
|
80
|
-
//
|
|
80
|
+
// SurfaceView backed preview avoids black frames on some MediaTek devices
|
|
81
81
|
implementationMode = PreviewView.ImplementationMode.PERFORMANCE
|
|
82
|
-
// Force visibility to ensure the view is rendered
|
|
83
82
|
visibility = View.VISIBLE
|
|
84
|
-
// Keep the screen on while preview is active
|
|
85
83
|
keepScreenOn = true
|
|
86
|
-
//
|
|
84
|
+
// Ensure the preview stays behind overlays even if SurfaceFlinger reorders surfaces
|
|
85
|
+
setZOrderOnTop(false)
|
|
87
86
|
requestLayout()
|
|
88
87
|
}
|
|
89
88
|
Log.d(TAG, "[INIT] PreviewView created: $previewView")
|
package/package.json
CHANGED