ScreenTurnOn与ScreenTurnOff配套使用优化
* refs/changes/1315/head: (3 commits squashed)
- ScreenTurnOn与ScreenTurnOff配套使用优化
- 解决蓝牙耳机按键退出有概率不取消常亮屏
- Merge branch 'sdk602patch0911' of https://codeup.aliyun.com/
64191456b9581d62e8f81ac0/FD230 into sdk602patch0911
Signed-off-by: 罗正 <1732036298@qq.com>
Reviewed-by: Caisking <3449750381@qq.com>
Reviewed-by: 罗正 <1732036298@qq.com>
Reviewed-by: aliyun8003852482 <1224667075@qq.com>
Reviewed-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Reviewed-by: aliyun6865282430 <1624952103@qq.com>
Merged-by: Caisking <3449750381@qq.com>
link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/1315
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-03 11:10:08
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-05 16:38:12
+ * @LastEditTime: 2024-11-01 15:46:19
* @FilePath: /xts_origin/FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceConnectingView.cpp
*/
#include "aivoice/include/AiVoiceConnectingView.h"
delete scrollView;
scrollView = nullptr;
}
+ ScreenTurnOff();
}
AiVoiceConnectingView *AiVoiceConnectingView::GetInstance(void)
if (!ret)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Bt is not Discovering");\r
- return;\r
}\r
CancelBrScanHandle();\r
return;\r
{\r
ui_api_vibrate_once_func();\r
}\r
- ScreenTurnOn(5*1000);\r
+ uapi_set_screen_on_api();\r
/* -------------------------------------------------------------------------- */\r
}\r
\r
{\r
ui_api_vibrate_once_func();\r
}\r
- ScreenTurnOn(5*1000);\r
+ uapi_set_screen_on_api();\r
/* -------------------------------------------------------------------------- */\r
}\r
\r
delete group;\r
group = nullptr;\r
}\r
+ ScreenTurnOff();\r
stop_connect_timer();\r
g_pBluetoothReconnectView = nullptr;\r
}\r
// 录取时长不足,停止录制并弹出警告
if (RecordingPresenter::GetInstance())
{
- ScreenTurnOn(3 * 1000); // 亮屏3s
+ uapi_set_screen_on_api();
if (true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()))
{
// 震动提醒