Skip to content

Commit

Permalink
Add missing minimum API level annotation
Browse files Browse the repository at this point in the history
The use of TelephonyCallback was introduced in react-native-webrtc#724.

This is only supported on Android SDK v31+.
  • Loading branch information
ramijarrar committed Oct 31, 2023
1 parent cc308ce commit 7f7ff14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f7ff14

Please sign in to comment.