delete TradionalBlueToothLabel;\r
TradionalBlueToothLabel = nullptr;\r
}\r
+ if (BluetoothServiceOptionsLabel != nullptr)\r
+ {\r
+ delete BluetoothServiceOptionsLabel;\r
+ BluetoothServiceOptionsLabel = nullptr;\r
+ }\r
if (AttentionLabel != nullptr)\r
{\r
delete AttentionLabel;\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-04-19 21:03:26\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-09-20 15:01:12\r
+ * @LastEditTime: 2024-09-27 17:45:34\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/include/SoundAndVibrationView.h\r
*/\r
#ifndef SOUND_AND_VIBRATION_VIEW_H\r
private:\r
UIScrollView *SoundAndVibrationScrollView[MAX_SOUNDANDVIBRATIONVIEWID]{nullptr};\r
UILabelExt *Title{nullptr}; // 标题:“声音与震动”\r
- UILabelButtonExt *SystemVolumeButton{nullptr}; // 系统音量按钮\r
- UILabelButtonExt *CallVolumeButton{nullptr}; // 通话音量按钮\r
- UILabelButtonExt *VibrationReminderButton{nullptr}; // 震动提醒按钮\r
- UILabelButtonExt *SilentModeButton{nullptr}; // 静音模式按钮\r
- UILabelExt *SystemVolumeLabel{nullptr}; // 系统音量标签\r
- UILabelExt *CallVolumeLabel{nullptr}; // 通话音量标签\r
- UILabelExt *VibrationReminderLabel{nullptr}; // 震动提醒标签\r
- UILabelExt *SilentModeLabel{nullptr}; // 静音模式标签\r
+ // UILabelButtonExt *SystemVolumeButton{nullptr}; // 系统音量按钮\r
+ // UILabelButtonExt *CallVolumeButton{nullptr}; // 通话音量按钮\r
+ // UILabelButtonExt *VibrationReminderButton{nullptr}; // 震动提醒按钮\r
+ // UILabelButtonExt *SilentModeButton{nullptr}; // 静音模式按钮\r
+ // UILabelExt *SystemVolumeLabel{nullptr}; // 系统音量标签\r
+ // UILabelExt *CallVolumeLabel{nullptr}; // 通话音量标签\r
+ // UILabelExt *VibrationReminderLabel{nullptr}; // 震动提醒标签\r
+ // UILabelExt *SilentModeLabel{nullptr}; // 静音模式标签\r
+ UILabelButtonExt *buttonPointers[4]{nullptr};\r
+ UILabelExt *labelPointers[4]{nullptr};\r
UIToggleButton *SilentModeToggleButton{nullptr}; // 静音模式切换按钮\r
bool initViewStatus{false};\r
UIImageView *temp{nullptr};\r
delete container_;\r
container_ = nullptr;\r
}\r
-\r
+ if (CallVolumeScrollView != nullptr)\r
+ {\r
+ CallVolumeScrollView = nullptr;\r
+ }\r
delete p_SoundAndVibrationVolumeSettingView;\r
p_SoundAndVibrationVolumeSettingView = nullptr;\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::ClearAll end!!");\r
}\r
}\r
\r
UIScrollView *CallVolumeView::CallVolumeViewInit(void)\r
{\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CallVolumeView::CallVolumeViewInit");\r
- p_SoundAndVibrationVolumeSettingView = new SoundAndVibrationVolumeSettingView(CALL_VOLUME);\r
if (p_SoundAndVibrationVolumeSettingView == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::p_SoundAndVibrationVolumeSettingView is nullptr!");\r
- return nullptr;\r
+ p_SoundAndVibrationVolumeSettingView = new SoundAndVibrationVolumeSettingView(CALL_VOLUME);\r
+ if (p_SoundAndVibrationVolumeSettingView == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::p_SoundAndVibrationVolumeSettingView is nullptr!");\r
+ return nullptr;\r
+ }\r
}\r
- CallVolumeScrollView = p_SoundAndVibrationVolumeSettingView->SetUpVolumeProcess();\r
if (CallVolumeScrollView == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::CallVolumeScrollView is nullptr!");\r
- return nullptr;\r
+ CallVolumeScrollView = p_SoundAndVibrationVolumeSettingView->SetUpVolumeProcess();\r
+ if (CallVolumeScrollView == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CallVolumeView::CallVolumeScrollView is nullptr!");\r
+ return nullptr;\r
+ }\r
}\r
\r
return CallVolumeScrollView;\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-02-19 10:39:14\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-09-20 15:12:30\r
+ * @LastEditTime: 2024-09-27 18:30:07\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/SoundAndVibrationView.cpp\r
*/\r
#include "soundandvibration/include/SoundAndVibrationView.h"\r
\r
void SoundAndVibrationView::ClearAll()\r
{\r
- if (container_ != nullptr)\r
+ if (initViewStatus == true)\r
{\r
- container_->RemoveAll();\r
- delete container_;\r
- container_ = nullptr;\r
- }\r
-\r
- if (initViewStatus)\r
- {\r
- if (SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] != nullptr)\r
+ if (container_ != nullptr)\r
{\r
- SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->RemoveAll();\r
-\r
- delete Title;\r
- Title = nullptr;\r
-\r
- delete SystemVolumeButton;\r
- SystemVolumeButton = nullptr;\r
-\r
- delete CallVolumeButton;\r
- CallVolumeButton = nullptr;\r
-\r
- delete VibrationReminderButton;\r
- VibrationReminderButton = nullptr;\r
-\r
- delete SilentModeButton;\r
- SilentModeButton = nullptr;\r
-\r
- delete SilentModeToggleButton;\r
- SilentModeToggleButton = nullptr;\r
-\r
- delete SystemVolumeLabel;\r
- SystemVolumeLabel = nullptr;\r
-\r
- delete CallVolumeLabel;\r
- CallVolumeLabel = nullptr;\r
-\r
- delete VibrationReminderLabel;\r
- VibrationReminderLabel = nullptr;\r
-\r
- delete SilentModeLabel;\r
- SilentModeLabel = nullptr;\r
-\r
- delete temp;\r
- temp = nullptr;\r
-\r
- delete SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW];\r
- SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] = nullptr;\r
+ container_->RemoveAll();\r
+ if (SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] != nullptr)\r
+ {\r
+ SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->RemoveAll();\r
+ if (Title != nullptr)\r
+ {\r
+ delete Title;\r
+ Title = nullptr;\r
+ }\r
+ for (int i = 0; i < 4; i++)\r
+ {\r
+ if (buttonPointers[i] != nullptr)\r
+ {\r
+ delete buttonPointers[i];\r
+ buttonPointers[i] = nullptr;\r
+ }\r
+ if (labelPointers[i] != nullptr)\r
+ {\r
+ delete labelPointers[i];\r
+ labelPointers[i] = nullptr;\r
+ }\r
+ }\r
+ if (SilentModeToggleButton != nullptr)\r
+ {\r
+ delete SilentModeToggleButton;\r
+ SilentModeToggleButton = nullptr;\r
+ }\r
+ if (temp != nullptr)\r
+ {\r
+ delete temp;\r
+ temp = nullptr;\r
+ }\r
+ delete SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW];\r
+ SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] = nullptr;\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ClearAll end!!");\r
+ }\r
+ delete container_;\r
+ container_ = nullptr;\r
}\r
}\r
-\r
if (vibrationModeView != nullptr)\r
{\r
delete vibrationModeView;\r
vibrationModeView = nullptr;\r
}\r
+ for (int i = SOUNDANDVIBRATIONVIEW; i < MAX_SOUNDANDVIBRATIONVIEWID; i++)\r
+ {\r
+ SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] = nullptr;\r
+ }\r
}\r
\r
/// @brief 声音与震动视图"scrollView"视图初始化\r
/// @return true 初始化成功 false 初始化失败\r
bool SoundAndVibrationView::InitSoundAndVibrationScrollView(void)\r
{\r
- SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] = new UIScrollView();\r
if (SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::new SoundAndVibrationScrollView[%d] fail!", SOUNDANDVIBRATIONVIEW);\r
- return false;\r
+ SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] = new UIScrollView();\r
+ if (SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::new SoundAndVibrationScrollView[%d] fail!", SOUNDANDVIBRATIONVIEW);\r
+ return false;\r
+ }\r
}\r
SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());\r
SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
/// @return true 初始化成功 false 初始化失败\r
bool SoundAndVibrationView::InitSoundAndVibrationViewTitleLabel(void)\r
{\r
- Title = new UILabelExt();\r
if (Title == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::Title new fail!");\r
- return false;\r
+ Title = new UILabelExt();\r
+ if (Title == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::Title new fail!");\r
+ return false;\r
+ }\r
}\r
Title->SetPosition(83, 50, 300, 35);\r
Title->SetStyle(STYLE_TEXT_FONT, 30);\r
{392, STR_VIBRATION_MODE},\r
{512, STR_SILENT_MODE},\r
};\r
- UILabelExt *labelPointers[] = {SystemVolumeLabel, CallVolumeLabel, VibrationReminderLabel, SilentModeLabel};\r
+ // UILabelExt *labelPointers[] = {SystemVolumeLabel, CallVolumeLabel, VibrationReminderLabel, SilentModeLabel};\r
for (int i = 0; i < sizeof(labelSetups) / sizeof(labelSetups[0]); ++i)\r
{\r
labelConfig = {\r
.textId = labelSetups[i].textId,\r
.lineBreakMode = UILabel::LINE_BREAK_OSCILLATION,\r
};\r
- labelPointers[i] = SetUpLabel_Ext(labelConfig);\r
if (labelPointers[i] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::labelPointers[%d] new fail!", i);\r
- return false;\r
+ labelPointers[i] = SetUpLabel_Ext(labelConfig);\r
+ if (labelPointers[i] == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::labelPointers[%d] new fail!", i);\r
+ return false;\r
+ }\r
}\r
SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->Add(labelPointers[i]);\r
}\r
{480, SILENT_MODE_BUTTON, false},\r
};\r
\r
- UILabelButtonExt *buttonPointers[] = {SystemVolumeButton, CallVolumeButton, VibrationReminderButton, SilentModeButton};\r
+ // UILabelButtonExt *buttonPointers[] = {SystemVolumeButton, CallVolumeButton, VibrationReminderButton, SilentModeButton};\r
\r
for (int i = 0; i < sizeof(buttonSetups) / sizeof(buttonSetups[0]); ++i)\r
{\r
.h = 100,\r
.ViewId = buttonSetups[i].viewId,\r
};\r
- buttonPointers[i] = SetUpButton_Ext(buttonconfig, buttonSetups[i].clickEffect);\r
if (buttonPointers[i] == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::Button[%d] new fail!", i);\r
- return false;\r
+ buttonPointers[i] = SetUpButton_Ext(buttonconfig, buttonSetups[i].clickEffect);\r
+ if (buttonPointers[i] == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::Button[%d] new fail!", i);\r
+ return false;\r
+ }\r
}\r
SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->Add(buttonPointers[i]);\r
}\r
bool SoundAndVibrationView::InitSoundAndVibrationToggleButton(void)\r
{\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::InitSoundAndVibrationToggleButton");\r
- SilentModeToggleButton = new UIToggleButton();\r
if (SilentModeToggleButton == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::SilentModeToggleButton new fail!");\r
- return false;\r
+ SilentModeToggleButton = new UIToggleButton();\r
+ if (SilentModeToggleButton == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::SilentModeToggleButton new fail!");\r
+ return false;\r
+ }\r
}\r
SilentModeToggleButton->SetPosition(298, 505, 100, 50);\r
SilentModeToggleButton->SetStyle(STYLE_BACKGROUND_OPA, 0x00);\r
if (SoundAndVibrationScrollView[thisView] == nullptr)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ChangeVibrationModeView");\r
- vibrationModeView = new VibrationModeView();\r
if (vibrationModeView == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView:: new scrollView[%d] fail", thisView);\r
- return false;\r
+ vibrationModeView = new VibrationModeView();\r
+ if (vibrationModeView == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView:: new scrollView[%d] fail", thisView);\r
+ return false;\r
+ }\r
}\r
SoundAndVibrationScrollView[thisView] = vibrationModeView->VibrationModeViewInit();\r
container_->Add(SoundAndVibrationScrollView[thisView]);\r
}
delete ScrollView;
ScrollView = nullptr;
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationVolumeSettingView::ClearAll end!!");
}
}
}
UIScrollView *SoundAndVibrationVolumeSettingView::SetUpVolumeProcess(void)
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationVolumeSettingView::SetUpVolumeProcess");
- ScrollView = new UIScrollView();
if (ScrollView == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationVolumeSettingView::ScrollView new fail");
- return nullptr;
+ ScrollView = new UIScrollView();
+ if (ScrollView == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationVolumeSettingView::ScrollView new fail");
+ return nullptr;
+ }
}
ScrollView->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
ScrollView->SetDraggable(true);
ScrollView->SetTouchable(true);
/* ------------------------------ VolumeProcess ----------------------------- */
- VolumeProcess = new UISlider();
if (VolumeProcess == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VolumeProcess new fail");
- return nullptr;
+ VolumeProcess = new UISlider();
+ if (VolumeProcess == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VolumeProcess new fail");
+ return nullptr;
+ }
}
VolumeProcess->SetSliderColor(Color::Gray(), Color::Silver());
VolumeProcess->SetPosition(167, 77, 130, 310);
VolumeProcess->RequestFocus();
VolumeProcess->SetRotateFactor(1.0);
/* ------------------------------- VolumeVetor ------------------------------ */
- VolumeVetor = new UIImageView();
if (VolumeVetor == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VolumeVetor new fail");
- return nullptr;
+ VolumeVetor = new UIImageView();
+ if (VolumeVetor == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VolumeVetor new fail");
+ return nullptr;
+ }
}
VolumeVetor->SetPosition(213, 213, 40, 40);
VolumeVetor->SetSrc(VOLUMECONTROLVECTORIMAGEPATH);
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-06-12 11:44:04\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-08-26 18:56:26\r
+ * @LastEditTime: 2024-09-27 18:01:41\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/SystemVolumeView.cpp\r
*/\r
#include "soundandvibration/include/SystemVolumeView.h"\r
delete container_;\r
container_ = nullptr;\r
}\r
-\r
+ if (SystemVolumeScrollView != nullptr)\r
+ {\r
+ SystemVolumeScrollView = nullptr;\r
+ }\r
delete p_SoundAndVibrationVolumeSettingView;\r
p_SoundAndVibrationVolumeSettingView = nullptr;\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::ClearAll end!!");\r
}\r
}\r
\r
UIScrollView *SystemVolumeView::SystemVolumeViewInit(void)\r
{\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::SystemVolumeViewInit");\r
- p_SoundAndVibrationVolumeSettingView = new SoundAndVibrationVolumeSettingView(SYSTEM_VOLUME);\r
if (p_SoundAndVibrationVolumeSettingView == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::p_SoundAndVibrationVolumeSettingView is nullptr!");\r
- return nullptr;\r
+ p_SoundAndVibrationVolumeSettingView = new SoundAndVibrationVolumeSettingView(SYSTEM_VOLUME);\r
+ if (p_SoundAndVibrationVolumeSettingView == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::p_SoundAndVibrationVolumeSettingView is nullptr!");\r
+ return nullptr;\r
+ }\r
}\r
- SystemVolumeScrollView = p_SoundAndVibrationVolumeSettingView->SetUpVolumeProcess();\r
if (SystemVolumeScrollView == nullptr)\r
{\r
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::SystemVolumeScrollView is nullptr!");\r
- return nullptr;\r
+ SystemVolumeScrollView = p_SoundAndVibrationVolumeSettingView->SetUpVolumeProcess();\r
+ if (SystemVolumeScrollView == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemVolumeView::SystemVolumeScrollView is nullptr!");\r
+ return nullptr;\r
+ }\r
}\r
\r
return SystemVolumeScrollView;\r
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-22 14:35:22
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-07-24 17:49:58
+ * @LastEditTime: 2024-09-27 18:14:37
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/soundandvibration/src/VibrationModeView.cpp
*/
#include "soundandvibration/include/VibrationModeView.h"
delete scrollView;
scrollView = nullptr;
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::ClearAll end!!");
}
}
}
scrollView->SetOnDragListener(dragListener);
/* -------------------------------------------------------------------------- */
- Title = new UILabelExt();
if (Title == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::Title is nullptr!");
- return nullptr;
+ Title = new UILabelExt();
+ if (Title == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::Title is nullptr!");
+ return nullptr;
+ }
}
Title->SetPosition(93, 50, 280, 40);
Title->SetStyle(STYLE_TEXT_FONT, 30);
Title->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
scrollView->Add(Title);
/* -------------------------------------------------------------------------- */
- VibrationModePicker = new UIPicker();
if (VibrationModePicker == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::VibrationModePicker is nullptr!");
- return nullptr;
+ VibrationModePicker = new UIPicker();
+ if (VibrationModePicker == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::VibrationModePicker is nullptr!");
+ return nullptr;
+ }
}
VibrationModePicker->SetPosition(43, 110, 380, 240);
VibrationModePicker->SetViewId("VibrationModePicker");
VibrationModePicker->SetSelected(ConfigModel::GetInstance()->GetVibrationReminder());
scrollView->Add(VibrationModePicker);
/* -------------------------------------------------------------------------- */
- VibrationModeLabelButton = new UILabelButtonExt();
if (VibrationModeLabelButton == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::VibrationModeLabelButton is nullptr!");
- return nullptr;
+ VibrationModeLabelButton = new UILabelButtonExt();
+ if (VibrationModeLabelButton == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VibrationModeView::VibrationModeLabelButton is nullptr!");
+ return nullptr;
+ }
}
VibrationModeLabelButton->SetPosition(0, 366, 466, 100);
VibrationModeLabelButton->SetImageSrc(PNG_BUTTON_466x100_IMAGE, PNG_BUTTON_466x100_IMAGE);