已合并
tas3 #5557
foredward创建于 11 天前
tas3 #5557
已合并
共 2 个文件变更+14-0
| @@ -473,6 +473,13 @@ public: | |||
| 473 | */ | 473 | */ |
| 474 | virtual ErrCode ReadNvInfo(int nvPhynum, std::string &nvInfo) = 0; | 474 | virtual ErrCode ReadNvInfo(int nvPhynum, std::string &nvInfo) = 0; |
| 475 | 475 | ||
| 476 | + /** | ||
| 477 | + * @Description screen status | ||
| 478 | + * | ||
| 479 | + * @return void | ||
| 480 | + */ | ||
| 481 | + virtual bool OnDisplayOrientationChanged(const int32_t orientation) = 0; | ||
| 482 | + | ||
| 476 | /** | 483 | /** |
| 477 | * @Description fold status | 484 | * @Description fold status |
| 478 | * | 485 | * |
| @@ -1699,6 +1699,13 @@ void WifiDisplayStateListener::OnAttributeChange(Rosen::DisplayId displayId, con | |||
| 1699 | // screen state | 1699 | // screen state |
| 1700 | auto orientation = displayInfo->GetDisplayOrientation(); | 1700 | auto orientation = displayInfo->GetDisplayOrientation(); |
| 1701 | WifiConfigCenter::GetInstance().SetScreenDispalyState(static_cast<int32_t>(orientation)); | 1701 | WifiConfigCenter::GetInstance().SetScreenDispalyState(static_cast<int32_t>(orientation)); |
| 1702 | + | ||
| 1703 | + IEnhanceService *pEnhanceService = WifiServiceManager::GetInstance().GetEnhanceServiceInst(); | ||
| 1704 | + if (pEnhanceService != nullptr) { | ||
| 1705 | + WIFI_LOGD("OnChange trigger, orientation=%{public}d", orientation); | ||
| 1706 | + pEnhanceService->OnDisplayOrientationChanged(static_cast<int32_t>(orientation)); | ||
| 1707 | + } | ||
| 1708 | + | ||
| 1702 | } | 1709 | } |
| 1703 | 1710 | ||
| 1704 | WifiFoldStateListener::WifiFoldStateListener(int foldAction) | 1711 | WifiFoldStateListener::WifiFoldStateListener(int foldAction) |