Compare commits

...
2 Commits
Author SHA1 Message Date
Jannik d8c1b2f764 build: clean compile debug APK 2026-06-09 14:23:45 +02:00
Jannik 4ad2c97c91 update: local changes for debug build 2026-06-09 14:15:15 +02:00
4 changed files with 11 additions and 2 deletions
Binary file not shown.
BIN
View File
Binary file not shown.
@@ -35,10 +35,12 @@ class UsbCameraView(context: Context, appContext: AppContext) : ExpoView(context
for (device in devices) { for (device in devices) {
android.util.Log.e("UsbCameraView", "Checking device: ${device.deviceName}, class: ${device.deviceClass}, interfaces: ${device.interfaceCount}") android.util.Log.e("UsbCameraView", "Checking device: ${device.deviceName}, class: ${device.deviceClass}, interfaces: ${device.interfaceCount}")
if (!usbManager.hasPermission(device)) { if (!usbManager.hasPermission(device)) {
val intent = android.content.Intent("com.schnappix.USB_PERMISSION")
intent.setPackage(context.packageName)
val permissionIntent = android.app.PendingIntent.getBroadcast( val permissionIntent = android.app.PendingIntent.getBroadcast(
activityContext, activityContext,
0, 0,
android.content.Intent("com.schnappix.USB_PERMISSION"), intent,
android.app.PendingIntent.FLAG_MUTABLE or android.app.PendingIntent.FLAG_UPDATE_CURRENT android.app.PendingIntent.FLAG_MUTABLE or android.app.PendingIntent.FLAG_UPDATE_CURRENT
) )
usbManager.requestPermission(device, permissionIntent) usbManager.requestPermission(device, permissionIntent)
+8 -1
View File
@@ -644,7 +644,7 @@ export default function CameraScreen({
{/* Render UI controls/overlays on top */} {/* Render UI controls/overlays on top */}
{renderContent()} {renderContent()}
</Animated.View> </View>
); );
} }
@@ -689,6 +689,7 @@ const styles = StyleSheet.create({
backgroundColor: 'transparent', backgroundColor: 'transparent',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
zIndex: 100,
}, },
idleContentArea: { idleContentArea: {
height: '100%', height: '100%',
@@ -699,6 +700,12 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
zIndex: 100,
}, },
settingsButton: { settingsButton: {
position: 'absolute', position: 'absolute',