#include "ConfigModel.h"\r
#include <array>\r
#include <stdexcept>\r
+#include "MainViewSample.h"\r
namespace OHOS\r
{\r
static const int CARD_SETTING_VALUE_LEN = 32;\r
\r
/*设置卡片[不被卡片管理,必须设置] */\r
cardSettings[index++] = SETCARD;\r
- \r
+\r
cardSettingCount = index;\r
}\r
\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "state %d is error", stateIndex);\r
}\r
+ \r
+ /*进行主界面UI更新通知 如果在主界面*/\r
+ if (MainViewSample::GetInstance() != nullptr)\r
+ MainViewSample::GetInstance()->UpdateStateShow();\r
}\r
\r
// 接口 2: 获取最高优先级为 true 的状态\r
DnotDisturbModel::GetInstance().SetDoNotDisturbModeEnabled(false);
/*更新主界面配置*/
MainModel::GetInstance().setDialState(DialState::DO_NOT_DISTURB,false);
- MainViewSample::GetInstance()->UpdateStateShow();
return true;
}
if (g_jumpView.count(curViewId) != 0)