From 7f7ff14bdf9616c836944e25c40c3f75e0115ff0 Mon Sep 17 00:00:00 2001 From: Rami Jarrar Date: Tue, 31 Oct 2023 18:36:33 +1100 Subject: [PATCH] Add missing minimum API level annotation The use of TelephonyCallback was introduced in react-native-webrtc#724. This is only supported on Android SDK v31+. --- android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java b/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java index b89954b8..3e90e349 100644 --- a/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java +++ b/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java @@ -38,6 +38,7 @@ import android.view.WindowManager; import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.localbroadcastmanager.content.LocalBroadcastManager; @@ -262,6 +263,7 @@ public void onCallStateChanged(int state, String incomingNumber) { } } + @RequiresApi(Build.VERSION_CODES.S) private class CallStateListener extends TelephonyCallback implements TelephonyCallback.CallStateListener { @Override