projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3842525
)
解绑:增加解绑时因为设置了亮屏时间而导致无法长亮屏
author
Caisking
<3449750381@qq.com>
Tue, 14 Jan 2025 09:05:03 +0000
(17:05 +0800)
committer
Caisking
<3449750381@qq.com>
Tue, 14 Jan 2025 09:05:03 +0000
(17:05 +0800)
code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp
patch
|
blob
|
history
code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp
patch
|
blob
|
history
code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
patch
|
blob
|
history
diff --git
a/code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp
b/code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp
index
6346147
..
f3f1ee8
100644
(file)
--- a/
code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp
+++ b/
code/sdk/application/wearable/fd230app/nativeui/uiservice/src/ui_service.cpp
@@
-215,6
+215,7
@@
extern "C"
// set_back_to_home_interval(g_interval);
const power_display_svr_api_t *display_api = power_display_svr_get_api();
display_api->set_screen_set_keepon_timeout(0);
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[ScreenTurnOff] turn_off_screen 0");
#endif
return;
}
diff --git
a/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp
b/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp
index
12a5b16
..
3f188d3
100644
(file)
--- a/
code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp
+++ b/
code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp
@@
-285,6
+285,7
@@
void FreeMessageView(void) {
MessageGroupView = nullptr;
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Free MessageView succeed!!");
}
+ //恢复亮屏
ScreenTurnOff();
return;
}
diff --git
a/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
b/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
index
5837abb
..
c0bd895
100644
(file)
--- a/
code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
+++ b/
code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
@@
-560,6
+560,7
@@
namespace OHOS
ui_api_vibrate_once_func(); // 震动一次
}
+ ScreenTurnOff(); //先设置为0
ScreenTurnOn(40 * 1000); // 亮屏操作 40秒关闭
PairingViewEventListener::GetInstance().Pairing_StartTimer(); // 开启一个40s后弹窗自动销毁定时器