{\r
UITimePicker *timePicker = CountDownTimeConfigView::GetInstance()->GetTimePicker();\r
\r
- if (nullptr != timePicker && ("00:00:00" != timePicker->GetSelectValue()))\r
+ std::string timeValue = timePicker->GetSelectValue();\r
+ if (nullptr != timePicker && ("00:00:00" != timeValue))\r
{\r
CountDownModel::GetInstance()->SetCountDownTime(timePicker->GetSelectValue()); // 设置倒计时时间\r
CountDownModel::GetInstance()->SetRingTime(timePicker->GetSelectValue()); // 设置响铃时间\r
{\r
CountDownModel::GetInstance()->SetCountDownTime("00:00:00");\r
CountDownModel::GetInstance()->SetRingTime("00:00:00");\r
+ CountDownModel::GetInstance()->CountDown_StopTimer();\r
CountDownModel::GetInstance()->StopRingtonePlaybackAndReleaseResources();\r
p_StartCountDownView->GetPlayOrPauseToggleButton()->SetTouchable(true);\r
p_StartCountDownView->GetPlayOrPauseToggleButton()->SetState(false);\r
bool MainCountDownView::ChangeMainCountDown(int16_t thisView)\r
{\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainCountDownView::ChangeMainCountDown");\r
- UIScrollView *view = MainCountDownViewInit();\r
- if (view == nullptr)\r
+ if (scrollView[thisView] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "view nullptr fail");\r
- return false;\r
+ UIScrollView *view = MainCountDownViewInit();\r
+ if (view == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "view nullptr fail");\r
+ return false;\r
+ }\r
+ scrollView[thisView] = view;\r
+ container_->Add(scrollView[thisView]);\r
}\r
- scrollView[thisView] = view;\r
- container_->Add(scrollView[thisView]);\r
return true;\r
}\r
\r
container_->SetTouchable(true);\r
container_->SetDraggable(true);\r
/* -------------------------------------------------------------------------- */\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d,%d",CountDownModel::GetInstance()->CountDownTimerIsEnd(),CountDownModel::GetInstance()->GetChanageToStartCountDownView());\r
if (CountDownModel::GetInstance()->CountDownTimerIsEnd() == false ||\r
CountDownModel::GetInstance()->GetChanageToStartCountDownView() == true)\r
{\r