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

Commit e3637b7

Browse files
authored
Merge pull request #276 from react-native-oh-library/sig_llh
fix:修改设置setAudioMuted,默认是false,取消静音,ignoreSilentHardwareSwitch也是默认false
2 parents af05797 + 8d30ee1 commit e3637b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ export class BaseOperate {
240240
return result;
241241
}
242242

243+
// 与OS web同事 对齐 默认false 是取消静音
243244
ignoreSilentHardwareSwitchMethods(ignoreSilentHardwareSwitch: boolean) {
244-
this.controller.setAudioMuted(!ignoreSilentHardwareSwitch)
245+
this.controller.setAudioMuted(ignoreSilentHardwareSwitch)
245246
}
246247

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

0 commit comments

Comments
 (0)