Hide USB Camera connection text while obscured to prevent flickering
This commit is contained in:
1 parent
1468b2d0c7
commit
56a610cd21
6 files changed
+14
-7
No files matched your search
@@ -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'}\""
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -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",
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -110,6 +110,11 @@ export default function CameraScreen({
|
||||
const countdownTimerRef = useRef<any>(null);
|
||||
const completionTimerRef = useRef<any>(null);
|
||||
const isCancelledRef = useRef<boolean>(false);
|
||||
const isObscuredRef = useRef<boolean>(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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user