Skip to content

Commit a5d650c

Browse files
committed
Avoid to call onSilence on Android API level < 29
1 parent 1c850e4 commit a5d650c

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)