Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 543c1c2

Browse files
authored
Merge pull request #277 from react-native-oh-library/sig_llh
revert: 恢复上一个提交对ignoreSilentHardwareSwitch的修改,会导致兼容性变更,先文档说明
2 parents e3637b7 + 03606e2 commit 543c1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harmony/rn_webview/src/main/ets/WebViewBaseOperate.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class BaseOperate {
242242

243243
// 与OS web同事 对齐 默认false 是取消静音
244244
ignoreSilentHardwareSwitchMethods(ignoreSilentHardwareSwitch: boolean) {
245-
this.controller.setAudioMuted(ignoreSilentHardwareSwitch)
245+
this.controller.setAudioMuted(!ignoreSilentHardwareSwitch)
246246
}
247247

248248
setCustomUserAgent(customUserAgent?: string, applicationNameForUserAgent?: string): void {

0 commit comments

Comments
 (0)