Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(carmode): fix mute icon visiblity related to android (#17485)

Calinteodorc427019a3141
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index 358ca40370..5ed82a5535 100644
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -3142,7 +3142,7 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- - RNSVG (15.15.4):
+ - RNSVG (15.15.5):
- boost
- DoubleConversion
- fast_float
@@ -3168,10 +3168,10 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- - RNSVG/common (= 15.15.4)
+ - RNSVG/common (= 15.15.5)
- SocketRocket
- Yoga
- - RNSVG/common (15.15.4):
+ - RNSVG/common (15.15.5):
- boost
- DoubleConversion
- fast_float
@@ -3697,7 +3697,7 @@ SPEC CHECKSUMS:
RNGoogleSignin: 30e1aee80140dc0706cd78a4951c411376c88329
RNScreens: 833237c48c756d40764540246a501b47dadb2cac
RNSound: b6bd5e049ad15c0b03f9dda1f817d0bb1d5e87cb
- RNSVG: c9d7c940ad9655eba72c5b9ca7b017c95bb58083
+ RNSVG: 9037a5826c3e0ad3f7e2aee7607b64d6710f048e
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
SplashView: 06e084339d80e51113ad4ecf465f7820598ddc95
Yoga: 6eb5d794e5d7a35a2750bb469e2e5320d41492f5
diff --git a/package-lock.json b/package-lock.json
index 179a1659bd..4c976a9cdb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -100,7 +100,7 @@
"react-native-screens": "4.17.1",
"react-native-sound": "https://github.com/jitsi/react-native-sound.git#bc92152667a628120374c1324fc9e44f697c3192",
"react-native-splash-view": "0.0.18",
- "react-native-svg": "15.15.4",
+ "react-native-svg": "15.15.5",
"react-native-svg-transformer": "1.2.0",
"react-native-tab-view": "3.5.2",
"react-native-url-polyfill": "2.0.0",
@@ -22366,14 +22366,13 @@
}
},
"node_modules/react-native-svg": {
- "version": "15.15.4",
- "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.15.4.tgz",
- "integrity": "sha512-boT/vIRgj6zZKBpfTPJJiYWMbZE9duBMOwPK6kCSTgxsS947IFMOq9OgIFkpWZTB7t229H24pDRkh3W9ZK/J1A==",
+ "version": "15.15.5",
+ "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.15.5.tgz",
+ "integrity": "sha512-L4go5jA+GWutdJ/JucuN20cjAbMg1HmMtAP+wZ+3JLCf6Jd0bhXQHxciRP/AQm/FlrIEZwkMcHNZP+FXAiic0w==",
"license": "MIT",
"dependencies": {
"css-select": "^5.1.0",
- "css-tree": "^1.1.3",
- "warn-once": "0.1.1"
+ "css-tree": "^1.1.3"
},
"peerDependencies": {
"react": "*",
@@ -42561,13 +42560,12 @@
"integrity": "sha512-dG6av22HtXpbfhDKC5cG6YkFo6czQR7nB+3KzdhWx+rVNLkJvNo6cABVehWNoUM0z9VRrAKrtZjYN28tM2b2Ug=="
},
"react-native-svg": {
- "version": "15.15.4",
- "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.15.4.tgz",
- "integrity": "sha512-boT/vIRgj6zZKBpfTPJJiYWMbZE9duBMOwPK6kCSTgxsS947IFMOq9OgIFkpWZTB7t229H24pDRkh3W9ZK/J1A==",
+ "version": "15.15.5",
+ "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.15.5.tgz",
+ "integrity": "sha512-L4go5jA+GWutdJ/JucuN20cjAbMg1HmMtAP+wZ+3JLCf6Jd0bhXQHxciRP/AQm/FlrIEZwkMcHNZP+FXAiic0w==",
"requires": {
"css-select": "^5.1.0",
- "css-tree": "^1.1.3",
- "warn-once": "0.1.1"
+ "css-tree": "^1.1.3"
},
"dependencies": {
"css-select": {
diff --git a/package.json b/package.json
index 97c9f1080e..54bed9dd52 100644
--- a/package.json
+++ b/package.json
@@ -106,7 +106,7 @@
"react-native-screens": "4.17.1",
"react-native-sound": "https://github.com/jitsi/react-native-sound.git#bc92152667a628120374c1324fc9e44f697c3192",
"react-native-splash-view": "0.0.18",
- "react-native-svg": "15.15.4",
+ "react-native-svg": "15.15.5",
"react-native-svg-transformer": "1.2.0",
"react-native-tab-view": "3.5.2",
"react-native-url-polyfill": "2.0.0",
@@ -212,12 +212,13 @@
"license": "Apache-2.0",
"scripts": {
"android-autolinking": "mkdir -p android/build/generated/autolinking && npx react-native config > android/build/generated/autolinking/autolinking.json",
+ "android-clean-cmake-cache": "find android node_modules -type d -name .cxx -prune -exec rm -rf {} +",
"lint": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && tsc --noEmit",
"lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 .",
"lint:lang": "for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done",
"lang-sort": "./resources/lang-sort.sh",
"lint-fix": "eslint --ext .js,.ts,.tsx --max-warnings 0 --fix .",
- "postinstall": "patch-package --error-on-fail && jetify && npm run android-autolinking",
+ "postinstall": "patch-package --error-on-fail && jetify && npm run android-clean-cmake-cache && npm run android-autolinking",
"start": "make dev",
"test": "DOTENV_CONFIG_PATH=tests/.env wdio run tests/wdio.conf.ts",
"test-single": "DOTENV_CONFIG_PATH=tests/.env wdio run tests/wdio.conf.ts --spec",
diff --git a/react/features/conference/components/native/carmode/MicrophoneButton.tsx b/react/features/conference/components/native/carmode/MicrophoneButton.tsx
index 5eda77e981..8f38216964 100644
--- a/react/features/conference/components/native/carmode/MicrophoneButton.tsx
+++ b/react/features/conference/components/native/carmode/MicrophoneButton.tsx
@@ -14,9 +14,9 @@ import { getFeatureFlag } from '../../../../base/flags/functions';
import Icon from '../../../../base/icons/components/Icon';
import { IconMic, IconMicSlash } from '../../../../base/icons/svg';
import { MEDIA_TYPE } from '../../../../base/media/constants';
-import { isLocalTrackMuted } from '../../../../base/tracks/functions';
+import { isLocalTrackMuted } from '../../../../base/tracks/functions.native';
import { isAudioMuteButtonDisabled } from '../../../../toolbox/functions.any';
-import { muteLocal } from '../../../../video-menu/actions';
+import { muteLocal } from '../../../../video-menu/actions.native';
import styles from './styles';
@@ -35,10 +35,6 @@ const MicrophoneButton = (): JSX.Element | null => {
const enabledFlag = useSelector((state: IReduxState) => getFeatureFlag(state, AUDIO_MUTE_BUTTON_ENABLED, true));
const [ longPress, setLongPress ] = useState(false);
- if (!enabledFlag) {
- return null;
- }
-
const onPressIn = useCallback(() => {
!disabled && dispatch(muteLocal(!audioMuted, MEDIA_TYPE.AUDIO));
}, [ audioMuted, disabled ]);
@@ -67,6 +63,10 @@ const MicrophoneButton = (): JSX.Element | null => {
}
}, [ longPress, setLongPress ]);
+ if (!enabledFlag) {
+ return null;
+ }
+
return (
<TouchableOpacity
onLongPress = { onLongPress }
diff --git a/react/features/conference/components/native/carmode/styles.ts b/react/features/conference/components/native/carmode/styles.ts
index 62a67b9ee3..a513d3cf07 100644
--- a/react/features/conference/components/native/carmode/styles.ts
+++ b/react/features/conference/components/native/carmode/styles.ts
@@ -37,7 +37,9 @@ export default {
microphoneStyles: {
container: {
+ borderColor: 'transparent',
borderRadius: MICROPHONE_SIZE / 2,
+ borderWidth: BaseTheme.spacing[0],
height: MICROPHONE_SIZE,
maxHeight: MICROPHONE_SIZE,
justifyContent: 'center',
@@ -64,7 +66,7 @@ export default {
},
unmuted: {
- borderWidth: 4,
+ borderWidth: BaseTheme.spacing[1],
borderColor: BaseTheme.palette.success01
}
},