HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneIntercomActivity.java
@@ -139,6 +139,9 @@ timer_lp_calltime = (Chronometer) findViewById(R.id.timer_lp_calltime); tv_lp_calltime = findViewById(R.id.tv_lp_calltime); setWidthHeightWithRatio(ll_video_lp_rendering, 16, 9); iv_lp_screenshot.setEnabled(false); iv_lp_unlock.setEnabled(false); } /** @@ -210,7 +213,6 @@ @Override public void onTick(long millisUntilFinished) { if (!HDLLinphoneIntercomActivity.this.isFinishing()) { } } @@ -219,12 +221,9 @@ */ @Override public void onFinish() { // showToast("开锁onFinish"); iv_lp_unlock.setEnabled(true); } }; // } @Override @@ -310,6 +309,9 @@ if (HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener() != null) { HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener().onAnswerAction(); } iv_lp_screenshot.setEnabled(true); iv_lp_unlock.setEnabled(true); } /****************开锁成功********/ HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneReverseCallActivity.java
@@ -58,7 +58,7 @@ private TextView tv_lp_calltime; //参数 private boolean isAnswer;//是否已经接听了 private boolean isAnswer = false;//是否已经接听了 private int callTime;//通话时间 //倒计时 private CountDownTimer mCountDownTimer; @@ -119,9 +119,7 @@ private void initView() { tv_lp_title = findViewById(R.id.tv_lp_title); iv_lp_screenshot = findViewById(R.id.iv_lp_screenshot); iv_lp_screenshot.setEnabled(false); iv_lp_unlock = findViewById(R.id.iv_lp_unlock); iv_lp_unlock.setEnabled(false); iv_lp_hangUp = findViewById(R.id.iv_lp_hangUp); tv_lp_hangUp = findViewById(R.id.tv_lp_hangUp); iv_lp_answer = findViewById(R.id.iv_lp_answer); @@ -134,6 +132,9 @@ timer_lp_calltime = (Chronometer) findViewById(R.id.timer_lp_calltime); tv_lp_calltime = findViewById(R.id.tv_lp_calltime); setWidthHeightWithRatio(ll_video_lp_rendering, 16, 9); iv_lp_screenshot.setEnabled(false); iv_lp_unlock.setEnabled(false); } /** HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/res/layout/activity_hdllinphone_monitor.xml
@@ -77,8 +77,7 @@ android:layout_height="66dp" android:scaleType="fitCenter" android:background="@drawable/btn_click_lp_screenshot" android:layout_centerHorizontal="true" ></ImageView> android:layout_centerHorizontal="true"/> <TextView android:id="@+id/tv_lp_screenshot" android:layout_width="match_parent" @@ -87,8 +86,7 @@ android:gravity="center" android:textColor="@color/lpsdk_textColor" android:textSize="14sp" android:layout_alignParentBottom="true" ></TextView> android:layout_alignParentBottom="true"/> </RelativeLayout>