|
@@ -643,11 +643,11 @@ class NurseHomeActivity : BaseActivity<NurseHomeActivityPresenter, ActivityNurs
|
|
|
|
|
|
inner class TimeReceiver: BroadcastReceiver() {
|
|
inner class TimeReceiver: BroadcastReceiver() {
|
|
override fun onReceive(context: Context, intent: Intent) {
|
|
override fun onReceive(context: Context, intent: Intent) {
|
|
- if (intent.action == Intent.ACTION_TIME_TICK
|
|
|
|
|
|
+ /*if (intent.action == Intent.ACTION_TIME_TICK
|
|
|| intent.action == Intent.ACTION_TIME_CHANGED
|
|
|| intent.action == Intent.ACTION_TIME_CHANGED
|
|
|| intent.action == Intent.ACTION_TIMEZONE_CHANGED) {
|
|
|| intent.action == Intent.ACTION_TIMEZONE_CHANGED) {
|
|
|
|
|
|
- /*updateTime(false)
|
|
|
|
|
|
+ updateTime(false)
|
|
updateNetState()
|
|
updateNetState()
|
|
updateTcpState()
|
|
updateTcpState()
|
|
|
|
|
|
@@ -661,8 +661,8 @@ class NurseHomeActivity : BaseActivity<NurseHomeActivityPresenter, ActivityNurs
|
|
//当前不在通话中且laterRestart=true则重启app
|
|
//当前不在通话中且laterRestart=true则重启app
|
|
if (Constants.laterRestart && !DeviceChannel.calling) {
|
|
if (Constants.laterRestart && !DeviceChannel.calling) {
|
|
AppUpdateHelper.restartApp(activity)
|
|
AppUpdateHelper.restartApp(activity)
|
|
- }*/
|
|
|
|
- } else if (intent.action == Constants.HOOK_ON) {
|
|
|
|
|
|
+ }
|
|
|
|
+ } else */if (intent.action == Constants.HOOK_ON) {
|
|
Log.e(TAG,"手柄放下 ")
|
|
Log.e(TAG,"手柄放下 ")
|
|
Constants.hookOn = true
|
|
Constants.hookOn = true
|
|
VoiceManagerUtil.switchAudioMode(activity, true)
|
|
VoiceManagerUtil.switchAudioMode(activity, true)
|