diff --git a/android/app/build.gradle b/android/app/build.gradle index 154c19bb..3c8f5f71 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -92,8 +92,8 @@ android { applicationId 'de.orfel.schnappix' minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 42 - versionName "23.01.42" + versionCode 43 + versionName "23.01.43" buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\"" } diff --git a/apks/Schnappix_v23.01.43.aab b/apks/Schnappix_v23.01.43.aab new file mode 100644 index 00000000..cd0699e3 Binary files /dev/null and b/apks/Schnappix_v23.01.43.aab differ diff --git a/apks/Schnappix_v23.01.43.apk b/apks/Schnappix_v23.01.43.apk new file mode 100644 index 00000000..c45fa867 --- /dev/null +++ b/apks/Schnappix_v23.01.43.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d47b895a51c0f822c27910702d305b3f1f4dda4ee666b3421914a0bbdbf768f0 +size 116898223 diff --git a/app.json b/app.json index 77b98634..38ff0a1d 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,7 @@ "newArchEnabled": true, "name": "Schnappix", "slug": "Schnappix", - "version": "23.01.42", + "version": "23.01.43", "orientation": "landscape", "icon": "./Icon.png", "userInterfaceStyle": "dark", @@ -13,7 +13,7 @@ }, "android": { "package": "de.orfel.schnappix", - "versionCode": 42, + "versionCode": 43, "usesCleartextTraffic": true, "adaptiveIcon": { "backgroundColor": "#050510", diff --git a/package.json b/package.json index 210e4c25..7dbb39c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schnappix", - "version": "23.01.42", + "version": "23.01.43", "main": "index.ts", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", diff --git a/src/screens/CameraScreen.tsx b/src/screens/CameraScreen.tsx index 89c6cca1..377ec1b6 100644 --- a/src/screens/CameraScreen.tsx +++ b/src/screens/CameraScreen.tsx @@ -110,6 +110,11 @@ export default function CameraScreen({ const countdownTimerRef = useRef(null); const completionTimerRef = useRef(null); const isCancelledRef = useRef(false); + const isObscuredRef = useRef(isObscured); + + useEffect(() => { + isObscuredRef.current = isObscured; + }, [isObscured]); const { width } = useWindowDimensions(); const iconSize = width < 768 ? 18 : 32; @@ -191,9 +196,8 @@ export default function CameraScreen({ } catch (logErr) { console.error('Failed to get USB Camera logcat:', logErr); } - } } else { - if (isUsbConnected) { + if (isUsbConnected && !isObscuredRef.current) { setIsUsbConnected(false); } }