modify DisplayManager.GetAllDisplays interface

Signed-off-by: xiaojianfeng <xiaojianfeng3@huawei.com>
Change-Id: Iff165af080f82ad237cfec352d9a600e91d1be93
This commit is contained in:
xiaojianfeng 2022-02-24 21:44:44 +08:00
parent 0b7b911407
commit cc56fb4579

View File

@ -27,7 +27,7 @@ int main(int argc, const char *argv[])
WaitRenderServiceInit();
auto& dms = OHOS::Rosen::DisplayManager::GetInstance();
std::vector<const sptr<OHOS::Rosen::Display>> displays = dms.GetAllDisplays();
auto displays = dms.GetAllDisplays();
while (displays.empty()) {
LOG("displays is empty, retry to get displays");
displays = dms.GetAllDisplays();