// 页面完全置于后台时的逻辑。
void AiVoicePresenter::OnStop(void)
{
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnStop");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnStop start");
Presenter<AiVoiceView>::OnStop();
ScreenAlwaysOnCtr(CANCEL_SCREEN_ALWAYS_ON);
model->StatusResume();
dinit_ai_task();
uapi_ble_connect_param_update(BLE_CONNECT_INTERVAL_SLOW);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnStop end");
return;
}
bool AiVoicePresenter::ChangeViewAndLogicOperator(int16_t hideView, int16_t showView)
{
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::ChangeViewOperator");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::ChangeViewOperator");
// 加锁,作用域结束时自动释放锁
std::lock_guard<std::mutex> lock(m_mutex);
{
UNUSED(event);
std::string viewId = view.GetViewId();
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
/* ----------------------------- 重置60s取消常亮屏timer ---------------------------- */
model->reset_ai_screen60s_timer_time();
/* -------------------------------------------------------------------------- */
{
UNUSED(event);
std::string viewId = view.GetViewId();
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AiVoicePresenter::OnRelease %s", viewId.c_str());
/* ----------------------------- 重置60s取消常亮屏timer ---------------------------- */
model->reset_ai_screen60s_timer_time();
/* -------------------------------------------------------------------------- */