| | |
| | | private TextView tv_lp_calltime; |
| | | |
| | | //参数 |
| | | private boolean isAnswer;//是否已经接听了 |
| | | private boolean isAnswer = false;//是否已经接听了 |
| | | private int callTime;//通话时间 |
| | | //倒计时 |
| | | private CountDownTimer mCountDownTimer; |
| | |
| | | HDLLog.i(TAG, "onDestroy"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * initView |
| | | */ |
| | |
| | | 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); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Override |
| | | public void onTick(long millisUntilFinished) { |
| | | if (!HDLLinphoneReverseCallActivity.this.isFinishing()) { |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | if (HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener() != null) { |
| | | HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener().onAnswerAction(); |
| | | } |
| | | |
| | | iv_lp_screenshot.setEnabled(true); |
| | | iv_lp_unlock.setEnabled(true); |
| | | } |
| | | |
| | | /****************开锁成功********/ |
| | |
| | | int temp1 = Integer.parseInt(timer_lp_calltime.getText().toString().split(":")[1]); |
| | | return temp0 * 60 + temp1; |
| | | } |
| | | |
| | | |
| | | /****************封装常用方法********/ |
| | | /** |
| | |
| | | video_lp_rendering = null; |
| | | video_lp_rendering2 = null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 初始化震动器 |