TP-62361 | PR comments resolved

This commit is contained in:
yashmantri
2024-07-15 15:41:07 +05:30
parent 6f38d06665
commit 2552371d0f
7 changed files with 22 additions and 8 deletions

View File

@@ -34,6 +34,11 @@ public class PhoneStateModule extends ReactContextBaseJavaModule {
@ReactMethod
public void getCurrentCallState(Promise promise) {
if (telephonyManager == null) {
promise.resolve("UNKNOWN");
return;
}
int state = telephonyManager.getCallState();
String currentCallState;