diff --git a/android/app/build/outputs/apk/debug/app-debug.apk b/android/app/build/outputs/apk/debug/app-debug.apk index 2c7e7a5a..05e412c2 100644 Binary files a/android/app/build/outputs/apk/debug/app-debug.apk and b/android/app/build/outputs/apk/debug/app-debug.apk differ diff --git a/logcat_error.txt b/logcat_error.txt new file mode 100644 index 00000000..8b253795 Binary files /dev/null and b/logcat_error.txt differ diff --git a/modules/usb-camera/android/src/main/java/expo/modules/usbcamera/UsbCameraView.kt b/modules/usb-camera/android/src/main/java/expo/modules/usbcamera/UsbCameraView.kt index faf96cda..1a2a665c 100644 --- a/modules/usb-camera/android/src/main/java/expo/modules/usbcamera/UsbCameraView.kt +++ b/modules/usb-camera/android/src/main/java/expo/modules/usbcamera/UsbCameraView.kt @@ -35,10 +35,12 @@ class UsbCameraView(context: Context, appContext: AppContext) : ExpoView(context for (device in devices) { android.util.Log.e("UsbCameraView", "Checking device: ${device.deviceName}, class: ${device.deviceClass}, interfaces: ${device.interfaceCount}") if (!usbManager.hasPermission(device)) { + val intent = android.content.Intent("com.schnappix.USB_PERMISSION") + intent.setPackage(context.packageName) val permissionIntent = android.app.PendingIntent.getBroadcast( activityContext, 0, - android.content.Intent("com.schnappix.USB_PERMISSION"), + intent, android.app.PendingIntent.FLAG_MUTABLE or android.app.PendingIntent.FLAG_UPDATE_CURRENT ) usbManager.requestPermission(device, permissionIntent) diff --git a/src/screens/CameraScreen.tsx b/src/screens/CameraScreen.tsx index cc348481..f06ac3d5 100644 --- a/src/screens/CameraScreen.tsx +++ b/src/screens/CameraScreen.tsx @@ -644,7 +644,7 @@ export default function CameraScreen({ {/* Render UI controls/overlays on top */} {renderContent()} - + ); } @@ -689,6 +689,7 @@ const styles = StyleSheet.create({ backgroundColor: 'transparent', justifyContent: 'center', alignItems: 'center', + zIndex: 100, }, idleContentArea: { height: '100%', @@ -699,6 +700,12 @@ const styles = StyleSheet.create({ flex: 1, justifyContent: 'center', alignItems: 'center', + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + zIndex: 100, }, settingsButton: { position: 'absolute',