Skip to content

Commit 3c2e8d4

Browse files
authored
Merge pull request #658 from react-native-webrtc/fix_on_silence_method_not_found
Avoid to call onSilence on Android API level < 29
2 parents 1c850e4 + a5d650c commit 3c2e8d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/java/io/wazo/callkeep/VoiceConnection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ public void onStateChanged(int state) {
271271

272272
@Override
273273
public void onSilence() {
274+
// onSilence was added on API level 29
275+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
276+
return;
277+
}
278+
274279
super.onSilence();
275280

276281
sendCallRequestToActivity(ACTION_ON_SILENCE_INCOMING_CALL, handle);

0 commit comments

Comments
 (0)