From ec33080ccafdec563688ed794eff0a3b35a3feec Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期二, 28 六月 2022 09:45:00 +0800 Subject: [PATCH] 2022-6-28 --- HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneReverseCallActivity.java | 23 ++++++++--------------- 1 files changed, 8 insertions(+), 15 deletions(-) diff --git a/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneReverseCallActivity.java b/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneReverseCallActivity.java index d0b31f5..f71f0b2 100644 --- a/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneReverseCallActivity.java +++ b/HDLLinphoneSDKDemoNew/HDLLinphoneSDK/src/main/java/com/hdl/hdllinphonesdk/activity/HDLLinphoneReverseCallActivity.java @@ -72,7 +72,6 @@ private String deviceSipAccount;//璁惧SIP璐﹀彿 - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -86,8 +85,7 @@ initCallBack(); initCountDownTimer(); initLinphone(); - initVibrator(); - +// initVibrator(); } /** @@ -111,13 +109,9 @@ mCountDownTimer.cancel(); mCountDownTimer = null; } - //5. onDestroyLinphone(); - HDLLog.i(TAG, "onDestroy"); - } - /** * initView @@ -125,7 +119,9 @@ 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); @@ -138,8 +134,6 @@ 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); - - } /** @@ -152,7 +146,6 @@ if (!TextUtils.isEmpty(titleName)) { tv_lp_title.setText(titleName); } - deviceSipAccount = extras.getString(HDLLinphoneKit.KEY_SIP_ACCOUNT); } } @@ -213,7 +206,6 @@ @Override public void onTick(long millisUntilFinished) { if (!HDLLinphoneReverseCallActivity.this.isFinishing()) { - } } @@ -317,6 +309,9 @@ if (HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener() != null) { HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener().onAnswerAction(); } + + iv_lp_screenshot.setEnabled(true); + iv_lp_unlock.setEnabled(true); } /****************寮�閿佹垚鍔�********/ @@ -351,7 +346,6 @@ int temp1 = Integer.parseInt(timer_lp_calltime.getText().toString().split(":")[1]); return temp0 * 60 + temp1; } - /****************灏佽甯哥敤鏂规硶********/ /** @@ -423,7 +417,6 @@ video_lp_rendering2 = null; } - /** * 鍒濆鍖栭渿鍔ㄥ櫒 */ @@ -449,8 +442,8 @@ /** * 鍏抽棴闇囧姩鍣� */ - void cancelVibrator(){ - if(mVibrator != null){ + void cancelVibrator() { + if (mVibrator != null) { mVibrator.cancel(); mVibrator = null; } -- Gitblit v1.8.0