瀏覽代碼

增加分机呼叫超时时间

weizhengliang 2 年之前
父節點
當前提交
c87b4ecccf

+ 1 - 1
android_bed/src/main/h10_w_yld/java/com/wdkl/app/ncs/callingbed/fragment/BaseCallFragment.kt

@@ -96,7 +96,7 @@ abstract class BaseCallFragment: Fragment(), View.OnTouchListener {
 
 
     //初始化计时器
     //初始化计时器
     protected fun initCountDownTimer(view: TextView) {
     protected fun initCountDownTimer(view: TextView) {
-        val overTime = SettingConfig.getSipOverTime(baseActivity) * 1000L
+        val overTime = SettingConfig.getSipOverTime(baseActivity) * 5 * 1000L
         countDownTimer = object: CountDownTimer(overTime, 1000) {
         countDownTimer = object: CountDownTimer(overTime, 1000) {
             override fun onTick(millisUntilFinished: Long) {
             override fun onTick(millisUntilFinished: Long) {
                 if (view != null) {
                 if (view != null) {

+ 1 - 1
android_bed/src/main/h10_w_yld/java/com/wdkl/app/ncs/callingbed/fragment/CallFragment.kt

@@ -246,7 +246,7 @@ class CallFragment : BaseFragment<MainFragmentPresenter, VoiceCallLayBinding>(),
     }*/
     }*/
 
 
     fun initCountDownTimer() {
     fun initCountDownTimer() {
-        val overTime = SettingConfig.getSipOverTime(getActivity()) * 1000L
+        val overTime = SettingConfig.getSipOverTime(baseActivity) * 5 * 1000L
         countDownTimer = object: CountDownTimer(overTime, 1000) {
         countDownTimer = object: CountDownTimer(overTime, 1000) {
             override fun onTick(millisUntilFinished: Long) {
             override fun onTick(millisUntilFinished: Long) {
                 val time = millisUntilFinished/1000
                 val time = millisUntilFinished/1000

+ 1 - 1
android_bed/src/main/h5_3128/java/com/wdkl/app/ncs/callingbed/fragment/BaseCallFragment.kt

@@ -89,7 +89,7 @@ abstract class BaseCallFragment: Fragment() {
 
 
     //初始化计时器
     //初始化计时器
     protected fun initCountDownTimer(view: TextView) {
     protected fun initCountDownTimer(view: TextView) {
-        val overTime = SettingConfig.getSipOverTime(baseActivity) * 1000L
+        val overTime = SettingConfig.getSipOverTime(baseActivity) * 5 * 1000L
         countDownTimer = object: CountDownTimer(overTime, 1000) {
         countDownTimer = object: CountDownTimer(overTime, 1000) {
             override fun onTick(millisUntilFinished: Long) {
             override fun onTick(millisUntilFinished: Long) {
                 if (view != null) {
                 if (view != null) {

+ 1 - 1
android_bed/src/main/h7_3128/java/com/wdkl/app/ncs/callingbed/fragment/CallFragment.kt

@@ -246,7 +246,7 @@ class CallFragment : BaseFragment<MainFragmentPresenter, VoiceCallLayBinding>(),
     }*/
     }*/
 
 
     fun initCountDownTimer() {
     fun initCountDownTimer() {
-        val overTime = SettingConfig.getSipOverTime(getActivity()) * 1000L
+        val overTime = SettingConfig.getSipOverTime(getActivity()) * 5 * 1000L
         countDownTimer = object: CountDownTimer(overTime, 1000) {
         countDownTimer = object: CountDownTimer(overTime, 1000) {
             override fun onTick(millisUntilFinished: Long) {
             override fun onTick(millisUntilFinished: Long) {
                 val time = millisUntilFinished/1000
                 val time = millisUntilFinished/1000

+ 1 - 1
android_bed/src/main/h7_z_3128_2/java/com/wdkl/app/ncs/callingbed/fragment/WebRTCCallFragment.kt

@@ -315,7 +315,7 @@ class WebRTCCallFragment : BaseFragment<CallFragmentPresenter, VoiceCallLayBindi
 
 
 
 
     fun initCountDownTimer() {
     fun initCountDownTimer() {
-        countDownTimer = object : CountDownTimer(Constant.CALL_TIMEOUT * 1000L, 1000) {
+        countDownTimer = object : CountDownTimer(Constant.CALL_TIMEOUT * 5 * 1000L, 1000) {
             override fun onTick(millisUntilFinished: Long) {
             override fun onTick(millisUntilFinished: Long) {
                 val time = millisUntilFinished / 1000
                 val time = millisUntilFinished / 1000
                 voice_call_timeout?.setText("呼叫倒计时: " + time + " 秒")
                 voice_call_timeout?.setText("呼叫倒计时: " + time + " 秒")