#include "thunderbird/include/ThunderBirdDialogueView.h"
#include "thunderbird/include/ThunderBirdModel.h"
+#include "thunderbird/include/ThunderBirdMainView.h"
#include "wearable_log.h"
#include <custom_utils.h>
#include "ln_api.h"
if (TextLabel != nullptr) { delete TextLabel; TextLabel = nullptr; }
if (speakAnimator != nullptr) { delete speakAnimator; speakAnimator = nullptr; }
if (listenAnimator != nullptr) { delete listenAnimator; listenAnimator = nullptr; }
- if (listenIcon != nullptr) { delete listenIcon; listenIcon = nullptr; }
if (RemindButton != nullptr) { delete RemindButton; RemindButton = nullptr;}
if (micIcon != nullptr) { delete micIcon; micIcon = nullptr;}
}
}
group->Add(speakAnimator);
group->Add(listenAnimator);
- listenIcon = new UIImageView();
- if (listenIcon)
- {
- listenIcon->SetAutoEnable(false);
- listenIcon->SetPosition(162, 31, 6, 6);
- listenIcon->SetSrc("/user/res/greenpoint.bin");
- listenIcon->SetVisible(false);
- listenIcon->SetResizeMode(UIImageView::CONTAIN);
- group->Add(listenIcon);
- }
RemindButton = new UILabelButton();
if (RemindButton)
{
if (TextLabel) { TextLabel->SetVisible(false);}
if (speakAnimator) { speakAnimator->SetVisible(false); speakAnimator->Stop(); }
if (listenAnimator) { listenAnimator->SetVisible(false); listenAnimator->Stop(); }
- if (listenIcon) { listenIcon->SetVisible(false); }
switch (showView)
{
case THUNDERBIRD_DIALOGUEVIEW_SPEAKING:
//动效图标
if (listenAnimator) { listenAnimator->SetVisible(true); listenAnimator->Start(); }
- if (listenIcon) { listenIcon->SetVisible(false); }
// // 启动30秒超时定时器
// if (ThunderBirdModel::GetInstance()) {
// ThunderBirdModel::GetInstance()->StartCountUpTimer(8); // 6秒超时
// }
//动效图标
if (listenAnimator) { listenAnimator->SetVisible(true); listenAnimator->Stop(); }
- if (listenIcon) { listenIcon->SetVisible(true); }
}
}
delete chargeBatteryicon;
chargeBatteryicon = nullptr;
}
+ if (listenIcon != nullptr)
+ {
+ delete listenIcon;
+ listenIcon = nullptr;
+ }
// 最后删除group1
delete group1;
group1->Add(chargeBatteryicon);
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "chargeBatteryicon add success");
/* -------------------------------------------------------------------------- */
+ /* -------------------------------- 小绿点(聆听指示器) -------------------------------- */
+ listenIcon = new UIImageView();
+ if (listenIcon == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "listenIcon new fail");
+ return nullptr;
+ }
+ listenIcon->SetAutoEnable(false);
+ listenIcon->SetPosition(80, 10, 8, 8);
+ listenIcon->SetSrc("/user/res/greenpoint.bin");
+ listenIcon->SetResizeMode(UIImageView::CONTAIN);
+ listenIcon->SetVisible(false);
+ group1->Add(listenIcon);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "listenIcon add success");
+ /* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
updateSignalDisplay();
/* -------------------------------------------------------------------------- */