JLChen
2021-08-24 e3541a31b314573a80400dd9b7ef8a9bc88f610b
HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/HDLLinphoneKit.java
@@ -557,14 +557,22 @@
     * 获取当前通话状态
     */
    public Call.State getCallState() {
        return HDLLinphoneService.getInstance().getCurrentCallState();
        if(HDLLinphoneService.getInstance() == null) {
            return null;
        }else {
            return HDLLinphoneService.getInstance().getCurrentCallState();
        }
    }
    /**
     * 获取当前通话状态是否为来电中
     */
    public boolean isIncomingReceivedCallState() {
        return HDLLinphoneService.getInstance().getCurrentCallState() == Call.State.IncomingReceived;
        if(HDLLinphoneService.getInstance() == null || HDLLinphoneService.getInstance().getCurrentCallState() == null){
            return false;
        }else{
            return (HDLLinphoneService.getInstance().getCurrentCallState() == Call.State.IncomingReceived);
        }
    }
    /**