|
@@ -149,7 +149,7 @@ class WatchEventDetailActivity : BaseActivity<WatchHomeActivityPresenter, WatchA
|
|
|
if (boolVibrator){
|
|
|
mVibrator.cancel()
|
|
|
//开启振动后 等待0.1s振动 振动2s 等待1s 振动2s 等待1s
|
|
|
- val pattern = longArrayOf(100, 2000, 1000, 2000, 1000, 2000)
|
|
|
+ val pattern = longArrayOf(100, 2000, 1000, 2000)
|
|
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
|
|
mVibrator.vibrate(VibrationEffect.createWaveform(pattern, -1))
|
|
|
} else {
|
|
@@ -254,11 +254,13 @@ class WatchEventDetailActivity : BaseActivity<WatchHomeActivityPresenter, WatchA
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ mVibrator.cancel()
|
|
|
event_end_text.setText("响应时间:" + TimeTransition().stampToDate(responseInteractionVO.actionEnd * 1000))
|
|
|
}
|
|
|
}
|
|
|
} else if (messageEvent.tag == 1) {
|
|
|
loadingDialog.dismiss()
|
|
|
+ mVibrator.cancel()
|
|
|
//具体逻辑在TcpHandleService中处理
|
|
|
}
|
|
|
}
|